-
Notifications
You must be signed in to change notification settings - Fork 897
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
Add redis specification #2525
Add redis specification #2525
Conversation
|
|
||
| Name | Instrument | Units | Description | Attribute Keys | Attributes | | ||
|-------------------------------|----------------------------|--------------|-------------|-|-| | ||
|`redis.uptime`|Asynchronous Counter|seconds|Number of seconds since Redis server start| |
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.
@haboy52587 thanks for your contribution!
Please refer to this PR #2458 where we've decided to focus on "what" do we get from the Instrument, rather than "how". In a nutshell, consider removing "Asynchronous" / "Synchronous".
|`redis.keyspace.hits`|Asynchronous Counter||Number of successful lookup of keys in the main dictionary| | | | ||
|`redis.keyspace.misses`|Asynchronous Counter||Number of failed lookup of keys in the main dictionary| | | | ||
|`redis.latest_fork`|Asynchronous Gauge|microseconds|Duration of the latest fork operation| | | | ||
|`redis.slaves.connected`|Asynchronous UpDownCounter||Number of connected replicas| | | |
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.
Could this be called redis.replicas.connected
? (given most oss projects are moving from master branch to main branch, I guess in the long run Redis would be inclined to avoid "slaves")
@@ -0,0 +1,46 @@ | |||
# Semantic conventions for database metrics |
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.
# Semantic conventions for database metrics | |
# Semantic conventions for Redis metrics |
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.
The overall direction looks good to me once https://github.com/open-telemetry/opentelemetry-specification/pull/2525/files#r866476318 is addressed.
I'm not Redis expert, it'll be great to get someone who is familiar with Redis (or even better, could we invite folks from the Redis community?). Not necessarily blocking given the status of the doc is Experimental.
@haboy52587 please update the CHANGELOG. |
@haboy52587 please clear the CLA. |
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.
@haboy52587 I commented your previous PR.
Still missing:
- Sign the CLA.
- Write a proper PR description.
- There are already Redis semantic conventions: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/database.md, anything new needs to align with existing.
@tigrannajaryan Actually the existing ones are for traces, and this is for metrics. Other than that, there are some metric that looks very Redis specific, e.g. |
We use |
Oh, yes, let's definitely go with the same prefix. |
Or maybe we should remove |
From https://github.com/redis/redis:
Also from https://redis.com/:
|
Closing this one as the author won't be continuing with this - also @codeboten will take on this one. |
Fixes #
Changes
Please provide a brief description of the changes here. Update the
CHANGELOG.md
for non-trivial changes. IfCHANGELOG.md
is updated,also be sure to update
spec-compliance-matrix.md
if necessary.Related issues #
Related oteps #