-
Notifications
You must be signed in to change notification settings - Fork 995
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
Use peer id as metric label #409
Conversation
Is the CI failing because of my change? I'm not sure I understand the error here |
Howdy - this is great! Thank you so much. |
I updated the PR to keep sending both metrics |
@s-christoff Should I do something more on this change? I'm not sure if the CI is failing because of this PR here🙂 |
Howdy friend, |
Hi @s-christoff, is there any news about this? |
Hi @s-christoff, sorry to bother you again, but how do you have any news here? |
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 - sorry for the delay, lots of internal conversations happening. :p
Hey!
I'm currently working on the consul integration at Datadog, and we want to scrape the prometheus endpoint to get consul metrics. In the current state several metrics are not consistently named, and contain parts that would be good as labels instead, and that makes scraping the endpoint and converting to Datadog metrics troublesome.
This PR use the peer ids as label and remove them from the metric names.
Example:
consul_raft_replication_appendEntries_logs_684ad51c_6143_f2ea_aaaa_8ab6cc5ccccc
->consul_raft_replication_appendEntries_logs
.This PR affects:
consul_raft_replication_installSnapshot
consul_raft_replication_heartbeat
consul_raft_replication_appendEntries_rpc
consul_raft_replication_appendEntries_logs
This change is not backward compatible since the metric names will be different. The current metric parsing method won't work anymore.
Please tell me what you think about this change! 😄
P.S. : I'd like to do the same thing for other consul metrics (here for example https://github.com/hashicorp/consul/blob/5e5dbedd47a5f875b60e241c5555a9caab595246/agent/http.go#L258)