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

json type error?? #67

Closed saclin closed 6 years ago

saclin commented 6 years ago

I added the arg "-nginx.scrape_uri http://127.0.0.1/nginx-status/format/json ". but get no json:""" Active connections: 2 server accepts handled requests 18 18 72 Reading: 0 Writing: 1 Waiting: 1 """ which is exactly same as I use "-nginx.scrape_uri http://127.0.0.1/nginx-status/" so the exporter log "2018/08/08 11:00:46 json.Unmarshal failed invalid character 'A' looking for beginning of value " why??? thanks

sysulq commented 6 years ago

This exporter supports nginx-vts-module only, not the status module.

saclin commented 6 years ago

thanks. I confused with another exporter