-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat: add functionality to get values from redis commands #8196
Conversation
36b3f2e
to
fd9abf2
Compare
Was a little unsure of how exactly to go about editing README |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. The only thing I'd say is that this might be better off as a new plugin. Already you're going to have a hard time changing the metric name if you don't like redis_commands
. Also not clear how to control which commands go into which metric, which I guess is not possible currently. That said, I'm not necessarily against merging it into the existing plugin.
plugins/inputs/redis/redis.go
Outdated
# command = ["get", "sample-key"] | ||
# key = "sample-key-value" | ||
# type = "string" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks wrong. Don't you need to specify [[inputs.redis.commands]]
ahead of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider naming "key" field
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes should be copied into readme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is addressed! Thank you for the catch, let me know if there is anything else needed.
Describe how to use the feature you added. Give examples so people unfamiliar with the feature will be able to understand how to configure it and know what data it will produce. |
Required for all PRs:
This PR is an attempt to pull additional metrics on redis from arbitrary commands. The logic in this PR accounts for types (
string
,integer
, andfloat
), and we could add more types.Issue addressed: https://github.com/influxdata/idpe/issues/8711
Community issue Addressed: #1027