oliver006 / redis_exporter

Prometheus Exporter for ValKey & Redis Metrics. Supports ValKey and Redis 2.x, 3.x, 4.x, 5.x, 6.x, and 7.x
https://github.com/oliver006/redis_exporter
MIT License
3.12k stars 876 forks source link

feat: extend stream metrics for redis 7 #817

Closed donovanvanheerden closed 1 year ago

donovanvanheerden commented 1 year ago

Hello,

I saw issue #799 and decided to make a PR to include the missing properties. First time using Go so please let me know if I should be doing something better. The change appears to work on my side and tests seem to pass, I also had to change the stream tests to use redis 7 to get the new metrics - hope that is all good.

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 163


Changes Missing Coverage Covered Lines Changed/Added Lines %
exporter/streams.go 17 19 89.47%
<!-- Total: 22 24 91.67% -->
Totals Coverage Status
Change from base Build 159: -0.01%
Covered Lines: 1942
Relevant Lines: 2099

💛 - Coveralls