Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add redis search module metrics #953

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nantiferov
Copy link
Contributor

@nantiferov nantiferov commented Sep 10, 2024

fixes: #942

Found that redis returns all related information to modules with info modules and added collection of all metrics that looks useful so far.

Parsing of module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[] is not ideal, but works fine with current Redis 7.4 / Redis search module 2.10

"commands_total": {txt: `Total number of calls per command`, lbls: []string{"cmd"}},
"commands_latencies_usec": {txt: `A histogram of latencies per command`, lbls: []string{"cmd"}},
"latency_percentiles_usec": {txt: `A summary of latency percentile distribution per command`, lbls: []string{"cmd"}},
"config_client_output_buffer_limit_bytes": {txt: `The configured buffer limits per class`, lbls: []string{"class", "limit"}},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I haven't changed this part, but looks like go fmt wasn't run in for config_client_output_buffer_limit_overcome_seconds in #933

I think it's worth to add linter check for formatting in CI.

@nantiferov nantiferov force-pushed the Feature--Add-redis-search-module-metrics branch 3 times, most recently from b6959b0 to 3f02f94 Compare September 11, 2024 11:03
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

Attention: Patch coverage is 95.72650% with 5 lines in your changes missing coverage. Please review.

Project coverage is 80.40%. Comparing base (262770b) to head (081482b).

Files with missing lines Patch % Lines
exporter/modules.go 89.65% 2 Missing and 1 partial ⚠️
main.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #953      +/-   ##
==========================================
+ Coverage   80.19%   80.40%   +0.21%     
==========================================
  Files          17       18       +1     
  Lines        1974     2021      +47     
==========================================
+ Hits         1583     1625      +42     
- Misses        306      310       +4     
- Partials       85       86       +1     

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

@coveralls
Copy link

coveralls commented Sep 11, 2024

Pull Request Test Coverage Report for Build 10814531479

Details

  • 120 of 125 (96.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 84.215%

Changes Missing Coverage Covered Lines Changed/Added Lines %
main.go 0 2 0.0%
exporter/modules.go 30 33 90.91%
Totals Coverage Status
Change from base Build 10813931276: 0.2%
Covered Lines: 2054
Relevant Lines: 2439

💛 - Coveralls

@nantiferov nantiferov force-pushed the Feature--Add-redis-search-module-metrics branch from f75fe7b to fc94ed9 Compare September 11, 2024 11:28
@nantiferov nantiferov force-pushed the Feature--Add-redis-search-module-metrics branch from 402bacd to 7c51e0c Compare September 11, 2024 15:01
@nantiferov nantiferov marked this pull request as ready for review September 11, 2024 15:01
@nantiferov nantiferov force-pushed the Feature--Add-redis-search-module-metrics branch from 7c51e0c to 081482b Compare September 11, 2024 15:13
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.

RediSearch module metrics collection
2 participants