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

Execution error #8

Open
Ramhm opened this issue May 11, 2021 · 1 comment
Open

Execution error #8

Ramhm opened this issue May 11, 2021 · 1 comment

Comments

@Ramhm
Copy link

Ramhm commented May 11, 2021

Hi,

I get this error in execution:
ERRO[2021-05-11T10:21:26+04:30] error fetching from exporter_exporter: error decoding json body: invalid character '<' looking for beginning of value

command:
./prometheus-net-discovery -networks "192.168.1.200/32" --filesdpath /tmp/

@jonaz
Copy link
Member

jonaz commented May 11, 2021

Thats expected since we only use exporter_exporter for now. It only tries to scrape port 9999 on exporter_exporter and fetch json from the exporter to know which services are behind it. I commented out the other ports. A PR to make that configuration would be accepted :)

https://github.com/FortnoxAB/prometheus-net-discovery/blob/master/main.go#L35-L42

We are currently running exporter_exporter with new discovery feature: QubitProducts/exporter_exporter#65

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