Closed sonnh-uit closed 1 year ago
Hello, I was fixed problem.
The root cause by config in vts module. To match type vts-exporter to prometheus, you must config output format it to prometheus.
Change vhost_traffic_status_display_format html;
to vhost_traffic_status_display_format prometheus;
and keep metrics_path is /metrics
to fix this problem.
Hi all,
I am using
nginx-vts-exporter
as exporter to Prometheus. When I add it on, the dashboard has an error namedexpected a valid start token, got "<" ("INVALID") while parsing: "<"
(see picture). But when I usecurl http://10.30.80.33/metrics
on the machine which installed prometheus, it was return result. Open link in web browser have same response. I tried changemetrics_path
to/metrics/format/json
but it not work too. I see some people have same problem with me but not yet have answer, so I create this Issue. Here is my job config:Here is result in browser
And here is result when I curl from Prometheus server
Everyone whose know, please help me fix this problem and tell me why it happen. Thanks advance.