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

[receiver/redis] Command latency metrics. #26569

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

bjandras
Copy link
Contributor

Description: Added command latency metric to the redis receiver.

Link to tracking Issue: #6942

Testing: Added tests for parsing latencystats section of redis info.

Documentation: Metric documentation in metadata.yaml

@github-actions github-actions bot added the receiver/redis Redis related issues label Sep 11, 2023
@bjandras bjandras marked this pull request as ready for review September 11, 2023 16:55
@bjandras bjandras requested a review from a team as a code owner September 11, 2023 16:55
Copy link
Contributor

@hughesjj hughesjj left a comment

Choose a reason for hiding this comment

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

LGTM

@dmitryax dmitryax merged commit aadfba7 into open-telemetry:main Sep 13, 2023
94 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 13, 2023
redis.cmd.latency:
enabled: false
description: Command execution latency
unit: us
Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I missed this during the review. The OTel spec recommends sticking to basic units, e.g. seconds instead of milliseconds if possible https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/metrics.md#instrument-units. E.g. HTTP latency metrics is in seconds as well https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-metrics.md#metric-httpserverrequestduration

I think we should convert the values to seconds in a follow-up PR

@bjandras bjandras deleted the redisreceiver_cmd_latency branch September 13, 2023 22:17
jorgeancal pushed a commit to jorgeancal/opentelemetry-collector-contrib that referenced this pull request Sep 18, 2023
**Description:** Added command latency metric to the redis receiver.

**Link to tracking Issue:**
open-telemetry#6942

**Testing:** Added tests for parsing `latencystats` section of redis
info.

**Documentation:** Metric documentation in metadata.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
receiver/redis Redis related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants