go-pluto / styx

Export Data from Prometheus to csv, gnuplot & matplotlib
https://speakerdeck.com/metalmatze/prometheus-styx
MIT License
99 stars 24 forks source link

Keep Getting Error "invalid character '<' looking for beginning of value" #6

Open louis-gallo-cigna opened 5 years ago

louis-gallo-cigna commented 5 years ago

Okay, I got styx to build on both a new Linux VM and Windows VM.

Why am I getting this error though on both platforms when I try to query my Prometheus server?

invalid character '<' looking for beginning of value

I'm relatively new to Prometheus and go. Am I doing something wrong?

Any help appreciated.

metalmatze commented 5 years ago

You probably need to adjust the URL to call Prometheus at. Styx tries to call localhost:9090 by default. Try running it with this flag and change it to point to your Prometheus: styx --prometheus http://prom.example.com

The invalid character '<' looking for beginning of value tells me that there was no JSON in the response and therefore the response could not be decoded.