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

Grafana dashboard update to support multiple instances #58

Closed hadret closed 6 years ago

hadret commented 6 years ago

Hello,

this PR is essentially providing two changes:

  1. fix: change nginx_upstream_response to nginx_upstream_responseMsec in Upstream Backend Reposnse section.
  2. feat: introduce Instance variable when you have multiple servers reporting via vts.

Essentially dashboard was prepared to support single nginx instance and changes I'm providing with this PR are switching the behavior to make use of the instance that Prometheus provides by default.

Regards, Filip

sysulq commented 6 years ago

nice job!