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

Restore grafana dashboard #45

Merged
merged 2 commits into from
Jan 10, 2025
Merged

Restore grafana dashboard #45

merged 2 commits into from
Jan 10, 2025

Conversation

rhetenor
Copy link
Contributor

@rhetenor rhetenor commented Jan 7, 2025

Hey!

Thanks for the server. Pretty fun!

While playing around a bit I noticed that the grafana dashboard got deleted. Probably because the folder got moved and the addition of pixelflut/ in the .gitignore.

Just restored the dashboard and modified the gitignore such that it doesn't happen again.

Cheers

@sbernauer
Copy link
Owner

Argh, good catch - you are absolutely right!
It did work for me locally, but I never committed the files 🙈

Can you please also add https://grafana.com/api/dashboards/1860/revisions/37/download as node-exporter-full_rev37.json?

@rhetenor
Copy link
Contributor Author

rhetenor commented Jan 9, 2025

Hey,

Added the other dashboard too.

Looked into it. It seems that the node-exporter is down and so the dashboard does not get any data. In grafana it says:
Datasource: Pixelflut; Job: None; Host: None. Can't find docker-node-exporter when running docker compose top.
Also when running docker compose rm it asks me to remove the docker-node-exporter and then running docker compose up it gives me the following output (two subsequent runs):

~/P/p/b/docker   main   docker compose up                                                                                                                                                                   I 
WARN[0000] /home/rhetenor/Projects/pixlflut/breakwater/docker/docker-compose.yml: `version` is obsolete 
[+] Running 4/4
 ✔ Container docker-pixelflut-1      Running                                                                                                                                                                  0.0s 
 ✔ Container docker-node-exporter-1  Created                                                                                                                                                                  0.2s 
 ✔ Container docker-prometheus-1     Running                                                                                                                                                                  0.0s 
 ✔ Container docker-grafana-1        Running                                                                                                                                                                  0.0s 
Attaching to grafana-1, node-exporter-1, pixelflut-1, prometheus-1
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: path / is mounted on / but it is not a shared or slave mount
 ✘  ~/P/p/b/docker   main   docker compose up                                                                                                                                                               I 
WARN[0000] /home/rhetenor/Projects/pixlflut/breakwater/docker/docker-compose.yml: `version` is obsolete 
[+] Running 3/0
 ✔ Container docker-prometheus-1  Running                                                                                                                                                                     0.0s 
 ✔ Container docker-pixelflut-1   Running                                                                                                                                                                     0.0s 
 ✔ Container docker-grafana-1     Running                                                                                                                                                                     0.0s 
Attaching to grafana-1, node-exporter-1, pixelflut-1, prometheus-1
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: path / is mounted on / but it is not a shared or slave mount

I guess the error output is coming from the node-exporter.
Hope it helps!

PS: Here's some system information if needed. If you need more, I'm glad to help.

docker --version                                                                                                                                                                   
Docker version 26.1.0, build 9714adc6c797755f63053726c56bc1c17c0c9204
uname -rsv                                                                                                                                                                         
Linux 6.6.57-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Oct 27 13:11:14 CET 2024

@sbernauer
Copy link
Owner

Strange, I strictly follow the docs from node_exporter here regarding the / mount (https://hub.docker.com/r/prom/node-exporter):

services:
  node_exporter:
    image: quay.io/prometheus/node-exporter:latest
    container_name: node_exporter
    command:
      - '--path.rootfs=/host'
    network_mode: host
    pid: host
    restart: unless-stopped
    volumes:
      - '/:/host:ro,rslave' # <<<<<<<<<<

There has been exactly the same question at node_exporter: prometheus/node_exporter#2002
Maybe mount --make-rshared / works for you as well?

Copy link
Owner

@sbernauer sbernauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the .gitignore and re-adding the dashboards!
I would say we can merge this as-is, for most of the users both dashboards should work. I hope you can fix you concrete problem, maybe with the help of the linked issue. If not, you can also give the docker-compose without the volume a try.

@sbernauer sbernauer merged commit 6accba3 into sbernauer:main Jan 10, 2025
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants