Diagnose why node_exporter metrics are not showing in Grafana for joey-server #37

Closed
opened 2022-07-15 12:48:57 -07:00 by Jafner · 8 comments
Jafner commented 2022-07-15 12:48:57 -07:00 (Migrated from gitlab.jafner.net)
[Grafana Dashboard - Home](https://grafana.jafner.net/d/P2kNT_l7k/home?orgId=1&refresh=5s)
Jafner commented 2022-07-15 12:49:04 -07:00 (Migrated from gitlab.jafner.net)

changed title from Diagnose why node_exporter metrics are no{-w-} showing in Grafana for joey-server to Diagnose why node_exporter metrics are no{+t+} showing in Grafana for joey-server

changed title from **Diagnose why node_exporter metrics are no{-w-} showing in Grafana for joey-server** to **Diagnose why node_exporter metrics are no{+t+} showing in Grafana for joey-server**
Jafner commented 2022-07-15 18:38:39 -07:00 (Migrated from gitlab.jafner.net)

It looks like the scrape job is failing, but it's hard to say why.

image

It looks like the scrape job is failing, but it's hard to say why. ![image](/uploads/ce425bc61189f3062eb69a04fc830f1f/image.png)
Jafner commented 2022-07-15 18:40:46 -07:00 (Migrated from gitlab.jafner.net)

curling the metrics endpoint appears to work:
image

`curl`ing the metrics endpoint appears to work: ![image](/uploads/718185b1cbc9b8e13278fa4dcc536a2a/image.png)
Jafner commented 2022-07-15 18:41:49 -07:00 (Migrated from gitlab.jafner.net)

The relevant section of prometheus.yml is:

global:
    scrape_interval: 60s
scrape_configs:
    - job_name: 'joey-server'
      scrape_interval: 5s
      static_configs:
        - targets: ['127.0.0.1:9100']
The relevant section of `prometheus.yml` is: ```yml global: scrape_interval: 60s scrape_configs: - job_name: 'joey-server' scrape_interval: 5s static_configs: - targets: ['127.0.0.1:9100'] ```
Jafner commented 2022-07-15 18:49:10 -07:00 (Migrated from gitlab.jafner.net)
$ wget localhost:9100/metrics
wget: can't connect to remote host (127.0.0.1): Connection refused
$ wget 192.168.1.23:9100/metrics
Connecting to 192.168.1.23:9100 (192.168.1.23:9100)

And cating the newly-created metrics file, we can see the proper metrics.

```sh $ wget localhost:9100/metrics wget: can't connect to remote host (127.0.0.1): Connection refused $ wget 192.168.1.23:9100/metrics Connecting to 192.168.1.23:9100 (192.168.1.23:9100) ``` And `cat`ing the newly-created metrics file, we can see the proper metrics.
Jafner commented 2022-07-15 18:49:29 -07:00 (Migrated from gitlab.jafner.net)

mentioned in commit d04f2252af

mentioned in commit d04f2252afa3f7983f7e2ae46323e59fbe847c51
Jafner commented 2022-07-15 18:51:40 -07:00 (Migrated from gitlab.jafner.net)

We're back up.
image

We're back up. ![image](/uploads/dd8e6e88b88a94e7409967d494cd5e45/image.png)
Jafner commented 2022-07-15 18:51:50 -07:00 (Migrated from gitlab.jafner.net)

assigned to @Jafner

assigned to @Jafner
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Jafner/homelab#37
No description provided.