-
Notifications
You must be signed in to change notification settings - Fork 759
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
[Bug]: Prometheus linter fails for Prometheus metrics reported by Ballerina #39862
[Bug]: Prometheus linter fails for Prometheus metrics reported by Ballerina #39862
Comments
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now. |
This error occurs due to formatting error in the following several metrics.
These metrics are positioned under summary metrics for |
Noticed that we provide HELP text and TYPE text each and every metric with the same metric name which is not the correct format of metric exposition. The metric exposition format can be found here. |
After correcting the above mentioned formatting issue, I received the following response for the promtool metric check.
Usually counter metric name should end with response_time_seconds_max, response_time_seconds_mean, response_time_seconds_min, response_time_seconds_stdDev are included in the summary metric. But summary metric has a format and it is as follows.
This format should be followed to be identified as a summary metric. |
PR will resolve the formatting issues regarding the metric data model. How ever there are still other formatting issues related to metric and label naming conventions.
|
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now. |
Description
Prometheus has a
promtool check metrics
commands. This runs a built in linter where we can pass Prometheus metrics over stdin to lint them for consistency and correctness.When I ran this command for Ballerina Promethus metrics, linting failed.
E.g. Error message
Steps to Reproduce
bal new
commandmain.bal
fileConfig.toml
file with the following configuration to enable the Prometheus metrics exporterbal run
and send several requests to `http://localhost:8090/srvc/testbrew
you can install the tool through Prometheus (brew install prometheus
)Affected Version(s)
OS, DB, other environment details and versions
No response
Related area
-> Observability
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: