mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
add dap-update script, add i3 & alacritty shortcut for bold font
This commit is contained in:
28
raspberry/metrics.md
Normal file
28
raspberry/metrics.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# prometheus + graphana to monitor node
|
||||
*(src: https://theawesomegarage.com/blog/monitor-your-raspberry-pi-with-prometheus-and-grafana)*
|
||||
|
||||
```
|
||||
sudo apt install prometheus
|
||||
|
||||
sudo apt-get install prometheus-node-exporter
|
||||
```
|
||||
|
||||
now visiting http://localhost:9100/metrics should return metrics
|
||||
|
||||
start the prometheus-node-exporter:
|
||||
```
|
||||
sudo systemctl enable prometheus-node-exporter
|
||||
sudo systemctl start prometheus-node-exporter
|
||||
```
|
||||
|
||||
for monitoring too the mounted devices (ie. usb):
|
||||
edit `/etc/default/prometheus-node-exporter`:
|
||||
```
|
||||
ARGS="--collector.filesystem.mount-points-exclude="^/(dev|proc|run|sys|mnt|var/lib/docker/.+)($|/)""
|
||||
```
|
||||
|
||||
restart the service:
|
||||
`sudo systemctl restart prometheus-node-exporter`
|
||||
|
||||
|
||||
Install Graphana: https://grafana.com/docs/grafana/latest/setup-grafana/installation/
|
||||
Reference in New Issue
Block a user