Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

982 B
Raw Blame

Prometheus

Install prometheus.service on an instance if it is running something that exports custom Prometheus metrics. In particular, museum does.

Installing

Prometheus doesn't currently support environment variables in config file, so remember to change the hardcoded XX-HOSTNAME too in addition to adding the remote_write configuration.

scp services/prometheus/prometheus.* <instance>:

nano prometheus.yml
sudo mv prometheus.yml /root/prometheus.yml
sudo mv prometheus.service /etc/systemd/system/prometheus.service

Tell systemd to pick up new service definitions, enable the units (so that they automatically start on boot going forward), and start them.

sudo systemctl daemon-reload
sudo systemctl enable --now prometheus

If it is an instance whose metrics (CPU, disk, RAM etc) we want to monitor, also install node-exporter:

sudo apt-get install -y prometheus-node-exporter