-
Notifications
You must be signed in to change notification settings - Fork 434
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
[EXPORTER] Prometheus: Remove explicit timestamps from metric points #2324
Conversation
fbdbbc1
to
1c5c931
Compare
Codecov Report
@@ Coverage Diff @@
## main #2324 +/- ##
==========================================
+ Coverage 87.45% 87.47% +0.02%
==========================================
Files 199 199
Lines 5997 5997
==========================================
+ Hits 5244 5245 +1
+ Misses 753 752 -1 |
@punya Thanks for the fix. The failing CI is due to:
|
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 once the CI is fixed.
Format needs to be fixed, either by running cmake-format, or adding the patch below: --- a/exporters/prometheus/test/exporter_utils_test.cc
+++ b/exporters/prometheus/test/exporter_utils_test.cc
@@ -43,7 +43,8 @@ void assert_basic(prometheus_client::MetricFamily &metric,
ASSERT_EQ(metric.type, type); // type translated
// Prometheus metric data points should not have explicit timestamps
- for (const prometheus::ClientMetric &cm : metric.metric) {
+ for (const prometheus::ClientMetric &cm : metric.metric)
+ {
ASSERT_EQ(cm.timestamp_ms, 0);
} |
1c5c931
to
d0a05f3
Compare
d0a05f3
to
e9f556b
Compare
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.
Thanks for the fix.
Fixes #2316
Changes
Please provide a brief description of the changes here.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes