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

Random Useless Values shown in Dashboard #38

Open
InvaderDolan opened this issue Jul 26, 2021 · 3 comments
Open

Random Useless Values shown in Dashboard #38

InvaderDolan opened this issue Jul 26, 2021 · 3 comments

Comments

@InvaderDolan
Copy link

InvaderDolan commented Jul 26, 2021

Hi. I have installed chia monitor as written in README. I am using Ubuntu 20.04 LTS.

Then I installed Grafana 8 (also tried Grafana 7.5.10) and Prometheus. Changed prometheus.yml as instructed:

scrape_configs:
  - job_name: chia_monitor
    static_configs:
    - targets: ['localhost:8000']

Launched Grafana at localhost:3000, imported dashboard, set data source as Prometeus and entered URL: http://localhost:8000/metrics and also tried http://localhost:8000. Also, I tried both Access settings: Server and Browser.

At the end, I get the random useless values. Here are 3 screenshots within 30 sec.

Screenshot from 2021-07-26 23-02-35
Screenshot from 2021-07-26 23-02-45
Screenshot from 2021-07-26 23-02-55

@carfloresf
Copy link

carfloresf commented Jul 28, 2021

I had the same problem, even though I selected the correct source, dashboard was showing random values. Mine solved setting my "Prometheus-1" (the instance monitoring chia-monitor) as the default datasource:

image

@philippnormann
Copy link
Owner

Hey @InvaderDolan, the data source in Grafana needs to point to the Prometheus instance and not to the /metrics page of the monitor. By default, the Prometheus server will use port 9090, so yours is probably running on localhost:9090.

Does changing the Prometheus data source URL in your Grafana to localhost:9090 fix your dashboard?

@InvaderDolan
Copy link
Author

Hey @InvaderDolan, the data source in Grafana needs to point to the Prometheus instance and not to the /metrics page of the monitor. By default, the Prometheus server will use port 9090, so yours is probably running on localhost:9090.

Does changing the Prometheus data source URL in your Grafana to localhost:9090 fix your dashboard?

Thank you for you answer. But I reinstalled grafana, tried everything from zero and then did your steps. I still have configured prometheus.yaml as before and tried http://localhost:9090 but now I get an error "Bad Gateway" and there is nothing now at all on this address. But 8000 and 8000/metrics still show some values.
What did I do wrong? Thank you for your attention.

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

3 participants