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

Exporter isn't showing any data #7

Open
kbreit opened this issue Jun 1, 2019 · 9 comments

Comments

Projects
None yet
3 participants
@kbreit
Copy link
Contributor

commented Jun 1, 2019

I setup the exporter as a Docker container and Prometheus is showing the target as up. However, when I click the target metrics page, I see 0's for everything.

pihole_status{hostname="192.168.15.15"} 0

Pihole is indeed up. I've used both the API key and the password in the exporter and the result is the same.

@eko

This comment has been minimized.

Copy link
Owner

commented Jun 6, 2019

Hi @kbreit,

I think I can close this now since you've added the hostname on Grafana dashboard? This is not really related to the Prometheus exporter ;)

@kbreit

This comment has been minimized.

Copy link
Contributor Author

commented Jun 7, 2019

When I look at the metrics page for the exporter, almost all the values are 0. I can’t tell if it’s communicating with pihole or not.

@eko

This comment has been minimized.

Copy link
Owner

commented Jun 9, 2019

Have you tried with the dashboard on this repository that allows you to select the node?

See: https://github.com/eko/pihole-exporter/blob/master/grafana/dashboard.json

@pellett22

This comment has been minimized.

Copy link

commented Jun 10, 2019

same issue here. Appears there are no Prometheus queries in the dashboard that was downloaded from this repository

@kbreit

This comment has been minimized.

Copy link
Contributor Author

commented Jun 10, 2019

That's what I'm seeing. When I go to the /metrics page, all the metrics are 0. I used the Grafana explorer, and Prometheus, to test this and getting the same result.

@pellett22

This comment has been minimized.

Copy link

commented Jun 10, 2019

I believe the issue is that the datasource for influxdb is called 'pihole' too.

When I removed the influxdb datasource, the dashboard started displaying data.

Also, set your Prometheus datasource as the default.

@eko

This comment has been minimized.

Copy link
Owner

commented Jun 12, 2019

Do you have precized the correct IP address of you PI-Hoke instance when running the exporter? (see Readme file)

@kbreit

This comment has been minimized.

Copy link
Contributor Author

commented Jun 13, 2019

The correct IP address is in my configuration. I did run a docker logs pihole-exporter and did see a ton of these errors. Are they consequential?

2019/06/13 02:20:12 Unable to unmarshal PI-Hole statistics to statistics struct model invalid character '<' looking for beginning of value

@eko

This comment has been minimized.

Copy link
Owner

commented Jun 14, 2019

@kbreit,

Are you able to look at the API stats on the PI-Hole API URL:

http://<IP of your PI-Hole>/admin/api.php?summaryRaw&overTimeData&topItems&recentItems&getQueryTypes&getForwardDestinations&getQuerySources&jsonForceObject

In case you have a password on your instance, please ensure that you provide the right password on pihole_password config option (see: https://github.com/eko/pihole-exporter#available-cli-options).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.