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

Wrong hitrate calculation for smart agent Redis #507

Merged
merged 2 commits into from
Oct 23, 2023
Merged

Conversation

aogereau
Copy link
Contributor

@aogereau aogereau commented Oct 19, 2023

Currently, the Redis hitrate detector for smart_agent_redis uses the following formula

A / ( A + B )

Where both A and B have the same value ( derive.keyspace_hits ) which will always give a result of 50 % .

this fix will replace B by derive.keyspace_misses instead, (according to the official documentation : https://github.com/signalfx/signalfx-agent/blob/main/docs/monitors/collectd-redis.md ) , which will give the correct value for the redis hitrate

image

Copy link
Member

@pdecat pdecat left a comment

Choose a reason for hiding this comment

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

LGTM!

@haedri haedri merged commit ca7cc16 into master Oct 23, 2023
28 checks passed
@aogereau aogereau deleted the fix_redis_hitrate branch November 2, 2023 09:58
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.

3 participants