This page (revision-13) was last changed on 10-May-2026 14:25 by Harry Metske

This page was created on 06-May-2026 07:07 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
13 10-May-2026 14:25 6 KB Harry Metske to previous
12 10-May-2026 10:48 6 KB Harry Metske to previous | to last
11 10-May-2026 10:41 6 KB Harry Metske to previous | to last
10 10-May-2026 10:34 5 KB Harry Metske to previous | to last
9 10-May-2026 10:33 5 KB Harry Metske to previous | to last Raspberry P setup 2026-04 ==> Raspberry PI setup 2026-04
8 10-May-2026 10:29 5 KB Harry Metske to previous | to last
7 10-May-2026 10:26 5 KB Harry Metske to previous | to last
6 10-May-2026 10:18 4 KB Harry Metske to previous | to last Raspberry P setuip 2026-04 ==> Raspberry P setup 2026-04
5 10-May-2026 10:18 4 KB Harry Metske to previous | to last
4 10-May-2026 09:46 2 KB Harry Metske to previous | to last
3 06-May-2026 07:23 2 KB Harry Metske to previous | to last
2 06-May-2026 07:09 2 KB Harry Metske to previous | to last
1 06-May-2026 07:07 1 KB Harry Metske to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 97 added 71 lines
! Prometheus install
{{{
groupadd prometheus
useradd -g prometheus prometheus --create-home --shell /usr/sbin/nologin
cd /tmp/
curl -L https://github.com/prometheus/prometheus/releases/download/v3.11.3/prometheus-3.11.3.linux-arm64.tar.gz -O
tar -xzf prometheus-3.11.3.linux-arm64.tar.gz
mv prometheus-3.11.3.linux-arm64 /usr/local
cd /usr/local
ln -s prometheus-3.11.3.linux-arm64 prometheus
cd prometheus
mkdir data
chown -R prometheus:prometheus /usr/local/prometheus
}}}
Copy the contents of /usr/local/prometheus/data from backup.
Create /etc/systemd/system/prometheus/service:
{{{
[Unit]
Description=Prometheus Server
Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target
[Service]
User=prometheus
Restart=on-failure
ExecStart=/usr/local/prometheus/prometheus \
--config.file=/usr/local/prometheus/prometheus.yml \
--storage.tsdb.path=/usr/local/prometheus/data \
--storage.tsdb.retention.time=720d
[Install]
WantedBy=multi-user.target
}}}
! Install node exporter
{{{
groupadd node-exporter
useradd -g node-exporter node-exporter --create-home --shell /usr/sbin/nologin
cd /tmp/
curl -L https://github.com/prometheus/node_exporter/releases/download/v1.11.1/node_exporter-1.11.1.linux-arm64.tar.gz -O
tar -xzf node_exporter-1.11.1.linux-arm64.tar.gz
mv node_exporter-1.11.1.linux-arm64 /usr/local
cd /usr/local
ln -s node_exporter-1.11.1.linux-arm64 node-exporter
}}}
Create /etc/systemd/system/node-exporter.service:
{{{
[Unit]
Description=Prometheus Node Exporter
Documentation=https://prometheus.io/docs/guides/node-exporter/
After=network-online.target
[[Service]
User=node-exporter
Restart=on-failure
ExecStart=/usr/local/node-exporter/node_exporter
[Install]
WantedBy=multi-user.target
}}}