Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Once you've cloned the repo, simply run (from the with within the cloned folder):

Code Block
docker-compose up -d

...

Installing node_exporter can be done by downloading a recent version version, untar'ing and executing.  We're going to be doing an extra step here to manage node_exporter with systemd (so it starts on server boot etc.).

...

Code Block
[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
ExecStart=/opt/node_exporter/node_exporter --web.listen-address=:10091

[Install]
WantedBy=multi-user.target

...

Once you have your docker containers running, access port 3000 on the server with a browser (e.g. visit httpvisit http://192.168.0.1:3000 or whatever your internal address is for your server). 

Info

For external network access you should (shall!) secure client-server comms.  See Apache reverse-proxy SSL to multiple server applications for a nice(?) way to do this for our setup here.

Grafana's login screen should appear - if you're the first user to login after creating this container then just enter any new credentials.

...

You can leave most setting as default and simply enter the server url docker-compose defined prom hostname with port 9090 for the Prometheus instance we have setup, for my case it looks like:

Image RemovedImage Added

Info

prom:9090 refers to the docker-compose defined hostname for our prometheus

Warning

The URL should point to the server's internal IP and NOT localhost (or 127.0.0.1) since localhost from Grafana's point of view in is the Grafana docker container.

Anchor
dashboards
dashboards
Adding monitoring dashboards

...