-
Notifications
You must be signed in to change notification settings - Fork 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
Fix/metric emission tracking #2825 #2870
base: master
Are you sure you want to change the base?
Fix/metric emission tracking #2825 #2870
Conversation
if(emitted_metrics.find(metrics_name.as_string()) == emitted_metrics.end()){ | ||
*_os<< "# HELP " << metrics_name <<'\n' | ||
<< "# TYPE " << metrics_name <<" gauge\n"; | ||
emitted_metrics.insert(metrics_name.as_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.
Some spaces are missing.
|
I don't feel there must be any issue in not adding any unit testcase, if there is any please let me know. |
We hope that PR will be equipped with unit tests as much as possible to ensure correctness. |
What problem does this PR solve?
Issue Number: #2825
Problem Summary:
The issue pertains to incorrectly tracking and emitting metric names when dumping Prometheus metrics. Some metrics, especially those related to latency, were not being properly emitted due to incorrect handling of the
emitted_metrics
set.What is changed and the side effects?
Changed:
_latency_*
and_count
suffixes.Side effects: