Comments (11)
You should make sure http://localhost/status
is the url where vts-module exposes its metrics.
I think this is the point you should take into account.
from nginx-vts-exporter.
Yes, I can access http://localhost/status from my browser.
from nginx-vts-exporter.
And this url should return json format metrics instead of html content.
from nginx-vts-exporter.
Hi hnlq715,
Thanks for your help, I tried change nginx.conf and change the code "vhost_traffic_status_display_format html;" to "vhost_traffic_status_display_format json;" and now it's ok:
./nginx-vts-exporter &
[1] 4941
2017/09/08 08:31:56 Starting nginx_vts_exporter (version=0.6, branch=HEAD, revision=e48bd6899d8864b11b9f71f852b049ec3ad2ae26)
2017/09/08 08:31:56 Build context (go=go1.8.3, user=root@3b0fc1d0acb6, date=20170808-07:09:08)
2017/09/08 08:31:56 Starting Server at : :9913
2017/09/08 08:31:56 Metrics endpoint: /metrics
2017/09/08 08:31:56 Metrics namespace: nginx
2017/09/08 08:31:56 Scraping information from : http://localhost/status
But I have another questions, "nginx-vts-exporter" process will terminated automatically about in a day, do you konw how can I setup log and to find the root cause?
from nginx-vts-exporter.
Nice to hear that π
The log of nginx-vts-exporter
would direcetly print into stdout, and you can use nohup ./nginx-vts-exporter &
to capture log into nohup.out
file.
from nginx-vts-exporter.
I created log file for nginx-vts-exporter, but when the process terminated, no any other information:
tailf /var/log/nginx-vts-exporter.log
2017/09/11 14:58:39 Starting nginx_vts_exporter (version=0.6, branch=HEAD, revision=e48bd6899d8864b11b9f71f852b049ec3ad2ae26)
2017/09/11 14:58:39 Build context (go=go1.8.3, user=root@3b0fc1d0acb6, date=20170808-07:09:08)
2017/09/11 14:58:39 Starting Server at : :9913
2017/09/11 14:58:39 Metrics endpoint: /metrics
2017/09/11 14:58:39 Metrics namespace: nginx
2017/09/11 14:58:39 Scraping information from : http://localhost/status
I don't know why the process terminted automatically, please advise.
from nginx-vts-exporter.
Maybe the process exits when your ssh terminal quits? Please try nohup ./nginx-vts-exporter &
to launch this program
from nginx-vts-exporter.
Yes, you are right, I used "nohup" and the process is running ok now.
Thanks you very much!
from nginx-vts-exporter.
Nice :-)
from nginx-vts-exporter.
Scraping information from : http://localhost/status
How to replace it to more correct path like http://localhost/status/format/json ? I made
export NGINX_STATUS=http://localhost/status/format/json but unsuccessfully.
from nginx-vts-exporter.
Scraping information from : http://localhost/status
How to replace it to more correct path like http://localhost/status/format/json ? I made
export NGINX_STATUS=http://localhost/status/format/json but unsuccessfully.
try http://localhost/status?json
from nginx-vts-exporter.
Related Issues (20)
- Error "expected a valid start token" in Prometheus target HOT 1
- Grafana dashboard is off compared to metrics HOT 1
- json.Unmarshal failed HOT 4
- θ½δΈθ½ζ―ζεδΈͺhttp code ηθ―·ζ±ιεοΌ
- Release v0.10.4 has no assets HOT 2
- was collected before with the same name and label values HOT 2
- Illegal host header , invalid host HOT 4
- Add Nginx_Up metric HOT 2
- 500 internal error from the :9913/metrics endpoint
- Export Go Process Metrics HOT 2
- Problem with github.com/beorn7/perks HOT 3
- How to retrieve `server_requests` metrics?
- I can't make or make rpm HOT 3
- Delete please, added to wrong repository HOT 1
- THIS PROJECT IS NOT MAINTAINED.
- nginx_filter_responseMsec value zero
- Monitoring multiple targets is not supported in consule_sd_configs
- Does it support multiple pod in k8s? HOT 3
- how to build in arm/aarch64 env ? HOT 8
- Release v0.10.7 has no assets HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx-vts-exporter.