vault backup: 2025-05-13 08:11:28
This commit is contained in:
@@ -25,26 +25,21 @@ http://212.67.13.241:9090/
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
node exporter
|
node exporter install
|
||||||
```
|
|
||||||
nano /etc/node_exporter/config.yml
|
|
||||||
```
|
```
|
||||||
|
mkdir /etc/node_exporter
|
||||||
|
|
||||||
```
|
cat <<EOF > /etc/node_exporter/config.yml
|
||||||
basic_auth_users:
|
basic_auth_users:
|
||||||
prometheus: "$2a$12$9fI6ZRV.1FAIRbqH9TnwgOSyCrQ18yMC0AoYcwErYmTD97sfJjMq2"
|
prometheus: "$2a$12$9fI6ZRV.1FAIRbqH9TnwgOSyCrQ18yMC0AoYcwErYmTD97sfJjMq2"
|
||||||
```
|
EOF
|
||||||
|
|
||||||
install
|
|
||||||
```
|
|
||||||
wget https://github.com/prometheus/node_exporter/releases/download/v1.9.1/node_exporter-1.9.1.linux-amd64.tar.gz
|
wget https://github.com/prometheus/node_exporter/releases/download/v1.9.1/node_exporter-1.9.1.linux-amd64.tar.gz
|
||||||
tar -xvf node_exporter-*.tar.gz
|
tar -xvf node_exporter-*.tar.gz
|
||||||
sudo mv node_exporter-1.9.1.linux-amd64/node_exporter /usr/local/bin/
|
sudo mv node_exporter-1.9.1.linux-amd64/node_exporter /usr/local/bin/
|
||||||
sudo nano /etc/systemd/system/node_exporter.service
|
rm -rf node_*
|
||||||
```
|
|
||||||
|
|
||||||
Insert this
|
cat <<EOF > /etc/systemd/system/node_exporter.service
|
||||||
```
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Node Exporter
|
Description=Node Exporter
|
||||||
After=network.target
|
After=network.target
|
||||||
@@ -56,9 +51,9 @@ Restart=always
|
|||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
EOF
|
||||||
|
|
||||||
|
systemctl enable --now node_exporter
|
||||||
|
systemctl start node_exporter
|
||||||
|
|
||||||
```
|
```
|
||||||
systemctl enable --now node_exporter.service
|
|
||||||
systemctl start node_exporter
|
|
||||||
```
|
|
||||||
Reference in New Issue
Block a user