Skip to content

Conversation

@nantiferov
Copy link
Contributor

@nantiferov nantiferov commented Oct 16, 2025

Disclaimer: I don't use valkey modules, metrics are collected based on docker image run output and metric types are suggested based on documentation, naming and code.

  • Add metrics collection for valkey modules metrics
  • Add tests suite for valkey modules metrics collection
  • Drop redis-stack (v7.4) modules metrics collection test suite as it reaches EOL soon
  • Add comments for redis-stack specific metrics
  • Remove redis-stack / TEST_REDIS_MODULES_URI
  • Replace TEST_REDIS_MODULES_URI with TEST_VALKEY8_BUNDLE_URI in TestSimultaneousMetricsHttpRequests()

fix: #1049, fix: #1050

Disclaimer: I don't use valkey modules, metrics are collected based on docker image run output and metric types are suggested based on documentation, naming and code.

* Add metrics collection for valkey modules metrics
* Add tests suite for valkey modules metrics collection
* Drop redis-stack (v7.4) modules metrics collection test suite as it reached EOL
* Add comments for redis-stack specific metrics
* Remove redis-stack / TEST_REDIS_MODULES_URI
* Replace TEST_REDIS_MODULES_URI with `TEST_VALKEY8_BUNDLE_URI` in TestSimultaneousMetricsHttpRequests()

fix: oliver006#1049 and oliver006#1050
@codecov
Copy link

codecov bot commented Oct 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.17%. Comparing base (1bef6bf) to head (cd1b7b2).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1051      +/-   ##
==========================================
+ Coverage   81.93%   82.17%   +0.24%     
==========================================
  Files          20       20              
  Lines        3094     3136      +42     
==========================================
+ Hits         2535     2577      +42     
  Misses        443      443              
  Partials      116      116              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 18570564070

Details

  • 47 of 47 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 85.914%

Totals Coverage Status
Change from base Build 18567545311: 0.2%
Covered Lines: 2702
Relevant Lines: 3145

💛 - Coveralls

// Valkey v8 metrics
"bf_bloom_defrag_hits": "bf_bloom_defrag_hits_total",
"bf_bloom_defrag_misses": "bf_bloom_defrag_misses_total",
"search_worker_pool_suspend_cnt": "search_worker_pool_suspend_count",
Copy link
Contributor Author

@nantiferov nantiferov Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Afaik according to Prometheus recommendations, _count suffix is valid for counters and some of the metrics has already this suffix.

For ones with _cnt ending, I'm renaming them to _count for consistency.

Copy link
Owner

@oliver006 oliver006 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks for the quick follow-up!

@oliver006 oliver006 merged commit 6e630b6 into oliver006:master Oct 17, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chore: Remove redis-stack from tests as it reaches EOL in December 2025 Feature: Add tests suite for valkey-bundle modules metrics

3 participants