sysulq / nginx-vts-exporter

Simple server that scrapes Nginx vts stats and exports them via HTTP for Prometheus consumption
https://sysulq.github.io/nginx-vts-exporter/
MIT License
645 stars 142 forks source link

Problem with vts upstream module #56

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi:

This exporter only work with vts module, but what about nginx vts stream module (https://github.com/vozlt/nginx-module-stream-sts)???

Only expose this metrics when scraping with the above module mentioned:

 HELP nginx_server_connections nginx connections
# TYPE nginx_server_connections gauge
nginx_server_connections{status="accepted"} 1
nginx_server_connections{status="active"} 1
nginx_server_connections{status="handled"} 1
nginx_server_connections{status="reading"} 0
nginx_server_connections{status="requests"} 29
nginx_server_connections{status="waiting"} 0
nginx_server_connections{status="writing"} 1
# HELP nginx_vts_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which nginx_vts_exporter was built.
# TYPE nginx_vts_exporter_build_info gauge
nginx_vts_exporter_build_info{branch="HEAD",goversion="go1.8.3",revision="82382edc1742c7308719c9f5050fba21fb62f87c",version="0.8.3"} 1

What about my upstream??

ghost commented 6 years ago

I reply to myself

This exporter does not work with the nginx-stream-sts because metrics are named different in json output files.