-
Notifications
You must be signed in to change notification settings - Fork 142
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
exporter does not work for mulitple nginx instances #55
Comments
|
In my case I have two instances of nginx and on top of that we have load balancer which chooses the nginx instance in round robin fashion so I can not hard code(id:port) or point to particular nginx instance. Then how do I add two separate nginx vts exporters for two instances of nginx? |
You should use exporter to connect nginx instance directly, instead of the load balancer. |
ok so to resolve this issue we have added nginx its exporter inside our nginx and now we get the required correct data. |
yes, pull request is welcome:) |
I'm not familiar with go language , could you please do that and release a new version ? That will be really helpful :) |
No problem, I would take it into consideration. Thanks for your advise 😄 |
Server info metrics added, and readme docs updated, please check the latest docker image. |
Hi,
We have 2 nginx instances (with nginx-vts module installed) setup to serve the traffic.
We have setup one nginx-vts-exporter and configured it to scrape the metrics from "/status/format/json" endpoint.
Observation: metrics exposed from "/metrics" endpoint of nginx-vts-exporter doesn't include the information about the nginx instance from which the information was grabbed. Hence we are not able to plot the metrics against the nginx instance say in grafana/prometheus.
Does nginx-vts-exporter support to track metrics from multiple nginx instances? or Do we need to configure it differently to support multiple nginx instances setup?
VTS version: 0.1.14
nginx version: 1.12.0
for single instance of nginx we are getting proper data but for multiple it is causing issues.
Please help us asap!
The text was updated successfully, but these errors were encountered: