-
Notifications
You must be signed in to change notification settings - Fork 36
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 daily runs: Adapt to the new format of Prometheus metrics #990
Conversation
c84d433
to
2bf6b28
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.
LGTM
Commit message is so vague, this can't go in - c'mon, some context needs to be in the message otherwise we have just row of "Fix error in daily runs" commits |
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.
Please update PR and commit message, with a better description.
Starting from Quarkus 2.16, the trailing comma was dropped from Prometheus metrics This change either allows tests to use both options, or disables them on older Quarkus versions. See quarkusio/quarkus#30343 for details
2bf6b28
to
9cf1fa2
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.
LGTM
@@ -22,7 +22,13 @@ public class HttpServerMetricsIT { | |||
private static final int ASSERT_METRICS_TIMEOUT_MINUTES = 1; | |||
private static final List<String> HTTP_SERVER_REQUESTS_METRICS_SUFFIX = Arrays.asList("count", "sum", "max"); | |||
|
|||
private static final String HTTP_SERVER_REQUESTS_METRICS_FORMAT = "http_server_requests_seconds_%s{method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"%s\",}"; | |||
/* | |||
* In versions before 2.16 metrics have format '{a,b,}' (with trailing comma) |
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.
❤️
See quarkusio/quarkus#30343 for details
Summary
Please select the relevant options.
run tests
phrase in comment)Checklist: