-
Notifications
You must be signed in to change notification settings - Fork 468
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
add prometheus display format #58
Comments
Hi, Thanks for your suggestion. |
Hi, the prometheus exporter for nginx-module-vts has been released by |
@vozlt I'm already using nginx-vts-exporter to collect prometheus metrics. It's really easy to use. |
@gianrubio Thanks for your good suggestion. |
@vozlt prometheus could be an another format for the stats. It'll be a new endpoint like status/format/prometheus. The kubernetes project are using your module for the nginx ingress controller. I'm really interested to make the prometheus format easy to use for everyone. It'll be similar to this screenshot. @hnlq715 what do you think? |
The requested feature may break the internal design in vozlt/nginx-module-vts. In my oppinion, it's much wiser to start a new project for nginx-prometheus-metrics, or use hnlq715/nginx-vts-exporter instead. |
@hnlq715, could you explain why this will break the design? |
Guys did u merge this PR to master? |
Guys, I also agree that it will not break any designs in nginx-module-vts. Prometheus is just another output similar to existing json, jsonp and html and rendering of it will be a no brainer. |
@gianrubio sorry to reply your question so lately... Prometheus in vts should use histogram instead of gauge type for time metrics, not like hnlq715/nginx-vts-exporter, which means a huge change for vts. Another choice here would be hnlq715/nginx-prometheus-metrics, which use lua embedded in nginx. |
@hnlq715, I agree that this will be a change for vts, however, I believe histograms are not mandatory for now and simple nginx-vts-exporter style gauge output will be fine. I believe that was an original suggestion by @gianrubio. |
@trnl @vozlt @gianrubio But it would be great to support histogram for time metrics, and we could achieve this with lua or c module. After all, we could have p90, p95 or p99 request/response time metrics... or even apdex score |
Hope this could help you guys, simple lua code generates nginx's prometheus metrics. |
@hnlq715, actually yes. We rely on that now. However it will be nice to have the same stuff in nginx-ingress-controller for Kubernetes. |
That feature has added. Latest commit: 2f9434f |
The metric type of histogram in Latest commit: 2fd3ae4 |
Overall
All of the above are very useful to have and are provided by other formats. |
Prometheus (prometheus.io) is a very powerfull open-source monitoring solution. Prometheus get the data scraping metrics from the applications.
To use prometheus with
nginx-module-vts
is a good way to monitoring and aggregate metrics from more than onenginx
servers.A way to do it is the
nginx-module-vts
supportprometheus
as a display format.The text was updated successfully, but these errors were encountered: