-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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/redis] include server.address and server.port resource attributes #26707
[receiver/redis] include server.address and server.port resource attributes #26707
Conversation
49cf5db
to
234e0f2
Compare
Hey guys, I am facing a similar issue while collecting metrics from five different Redis instances. My question is, when is this PR going to get merged, and when is it expected to be released ? Big thanks for all the hard-work <3. |
server.port: | ||
description: Redis server's port | ||
enabled: true | ||
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.
Is the port a 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.
We could parse it to get the corresponding number, but it is a string when it is taken from the address
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.
it's fine, let's leave it as is
…ibutes (open-telemetry#26707) **Description:** <Describe what has changed.> Two new resource attributes have been added: `server.address` and `server.port`. This is change aligned with [semantic conventions](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.25.0/specification/semantic-conventions.md?plain=1#L30) and allows users identifying a particular redis server. **Link to tracking Issue:** open-telemetry#22044 **Testing:** <Describe what testing was performed and which tests were added.> ``` ❯ go test -race -timeout 300s -parallel 4 --tags="",integration --count 1 ./... ok github.com/open-telemetry/opentelemetry-collector-contrib/receiver/redisreceiver 6.179s ok github.com/open-telemetry/opentelemetry-collector-contrib/receiver/redisreceiver/internal/metadata 1.464s ``` * Added: new test to check error when the configuration endpoint is missing or invalid * Updated: integration test to check new resource attributes **Documentation:** <Describe the documentation added.> New attribute documentation was generated using `mdatagen` --------- Co-authored-by: Antoine Toulme <[email protected]>
Description:
Two new resource attributes have been added:
server.address
andserver.port
. This is change aligned with semantic conventions and allows users identifying a particular redis server.Link to tracking Issue: #22044
Testing:
Documentation:
New attribute documentation was generated using
mdatagen