-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[Receiver/redisreceiver] Support More Redis Metrics #11090
Conversation
@codeboten @jpkrohling could someone of you approve the workflow to see if this PR pass the checks? Thanks. |
Ping for an update. |
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.
I looked at this mainly for the "Enum as Gauge" perspective, as I have not yet spent a lot of time with receivers on the collector. Someone more familiar with the receiver concept might have more insights into this topic.
@codeboten @mx-psi can we re-assign this to someone? Both the reviewer and assignee are not available till July or August. |
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.
Please update the changelog.
Another Q: Are all the new metrics that significant to be enabled by default? If we do that, this is going to be a breaking change. I recommend adding them as optional metrics.
c84143d
to
4c0d7f3
Compare
@dmitryax I have removed version metric and changed role metric to be an updowncounter. Also added a change log entry. |
Thanks @singku . I think my last Q is still not answered: Are all the new metrics that significant to be enabled by default? If we do that, this is going to be a breaking change. I recommend adding them as optional metrics. |
Also please update the PR description |
If they are added as optional. How consumers can config their OTel redisreceiver config to enable them? I didn't find an example. |
They are added as default metrics. It means that user will start receiving them unexpectedly after the upgrade. Optional metrics are marked as |
I understand that. I mean is there a way to configure at runtime so as to enable these optional metrics? If not, consumer has to pull the code and modify it then rebuild the binary to do so. Or we could re-enable them by default in next breaking change PR? |
No, all the metrics can be enabled or disabled by configuring the receiver, e.g.:
|
Sounds good! I have made the change. Note that since |
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.
LGTM. @pirgeo can you please take a another look since you were involved?
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.
Thanks for making the changes - LGTM!
@dmitryax @pirgeo @bertysentry thanks for all the comments to this CL. @dmitryax feel free to merge it with appropriate message. |
Descriptions
With
replica
andprimary
added as an attributeCurrently add calls and usec as two new metrics [sum], and cmd as the attribute for both.
all
parameter because the comments says all of the 'sections' and command stats is not in the default section.Related Discussions
open-telemetry/opentelemetry-proto#401
#11025
Tests
Manual tests to see that metrics are added.
Also the existing tests has been updated to fit the new metrics
Documentation
In-place documents added. There are also auto generated document for new metrics.