Skip to content
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

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

Open
louis-gallo-cigna opened this issue Nov 22, 2018 · 1 comment

Comments

@louis-gallo-cigna
Copy link

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants