-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Prometheus metrics endpoint in k6 REST API #1787
Comments
This comment has been minimized.
This comment has been minimized.
I've created a project to explore providing a sidecar solution to getting data from k6 into Prometheus |
Worth mentioning that this will have to be done as an output, for the reasons explained in #1875 (comment) |
Worth repeating #1792 (comment) here as well, if anyone stumbles on this issue: @szkiba has created an xk6 output extension for Prometheus: https://github.com/szkiba/xk6-prometheus |
Yes, and this is why I close this PR now... |
I'm going to use smoke test with a long running k6 instance for monitoring my service. I'd like to collect metrics from test using Prometheus.
This is not about exporting, pushing k6 normal result to Prometheus, that is another story. This is about monitoring smoke test process itself and make alerts on some monitored metric values.
I'd like to develop this feature if you agree on that this is useful, and there is a chance to merge.
Feature Description
k6 REST API endpoint for monitoring test process with Prometheus. Primary use case is a long running smoke test with monitored metrics. Collect metrics and make alerts when something isn't works as expected.
Suggested Solution
Add "/v1/monitor" REST API endpoint, to provide Prometheus formatted metrics. Add same metrics as the "/v1/metrics" endpoint. Use https://godoc.org/github.com/prometheus/common/expfmt for formating metrics in Prometheus format.
The text was updated successfully, but these errors were encountered: