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

Closed
kbreit opened this issue Jun 1, 2019 · 11 comments
Closed

Exporter isn't showing any data #7

kbreit opened this issue Jun 1, 2019 · 11 comments

Comments

@kbreit
Copy link
Contributor

kbreit 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
Copy link
Owner

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

kbreit 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
Copy link
Owner

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

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

@kbreit
Copy link
Contributor Author

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

pellett22 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
Copy link
Owner

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

kbreit 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
Copy link
Owner

eko 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).

@d7eeem
Copy link

d7eeem commented Jun 28, 2019

main is this
Annotation Query Failed
Datasource named ${DS_PROMETHEUS1} was not found

@eko
Copy link
Owner

eko commented Feb 1, 2020

Closing this issue as it's too old and I cannot find any trace of DS_PROMETHEUS1 variable anywhere in Grafana dashboard or in this repository.

I hope this is fixed for you now. Thank you

@eko eko closed this as completed Feb 1, 2020
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

4 participants