Difference between revisions of "Prometheus"
Jump to navigation
Jump to search
(Created page with "https://github.com/narethim/tools/blob/master/setup-prometheus-node-exporter-arm64.md https://grafana.com/docs/grafana-cloud/quickstart/noagent_linuxnode/") |
|||
Line 2: | Line 2: | ||
https://grafana.com/docs/grafana-cloud/quickstart/noagent_linuxnode/ | https://grafana.com/docs/grafana-cloud/quickstart/noagent_linuxnode/ | ||
<pre> | |||
wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-arm64.tar.gz | |||
tar -xvzf node_exporter-0.18.1.linux-arm64.tar.gz | |||
sudo cp node_exporter-0.18.1.linux-arm64/node_exporter /usr/local/bin | |||
sudo chmod +x /usr/local/bin/node_exporter | |||
sudo useradd -m -s /bin/bash node_exporter | |||
sudo mkdir /var/lib/node_exporter | |||
sudo chown -R node_exporter:node_exporter /var/lib/node_exporter | |||
sudo nano /etc/systemd/system/node_exporter.service | |||
</pre> | |||
<pre> | |||
[Unit] | |||
Description=Node Exporter | |||
[Service] | |||
# Provide a text file location for https://github.com/fahlke/raspberrypi_exporter data with the | |||
# --collector.textfile.directory parameter. | |||
ExecStart=/usr/local/bin/node_exporter --collector.textfile.directory /var/lib/node_exporter/textfile_collector | |||
[Install] | |||
WantedBy=multi-user.target | |||
</pre> | |||
<pre> | |||
sudo systemctl daemon-reload | |||
sudo systemctl enable node_exporter.service | |||
sudo systemctl start node_exporter.service | |||
</pre> |
Revision as of 20:59, 23 November 2022
https://github.com/narethim/tools/blob/master/setup-prometheus-node-exporter-arm64.md
https://grafana.com/docs/grafana-cloud/quickstart/noagent_linuxnode/
wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-arm64.tar.gz tar -xvzf node_exporter-0.18.1.linux-arm64.tar.gz sudo cp node_exporter-0.18.1.linux-arm64/node_exporter /usr/local/bin sudo chmod +x /usr/local/bin/node_exporter sudo useradd -m -s /bin/bash node_exporter sudo mkdir /var/lib/node_exporter sudo chown -R node_exporter:node_exporter /var/lib/node_exporter sudo nano /etc/systemd/system/node_exporter.service
[Unit] Description=Node Exporter [Service] # Provide a text file location for https://github.com/fahlke/raspberrypi_exporter data with the # --collector.textfile.directory parameter. ExecStart=/usr/local/bin/node_exporter --collector.textfile.directory /var/lib/node_exporter/textfile_collector [Install] WantedBy=multi-user.target
sudo systemctl daemon-reload sudo systemctl enable node_exporter.service sudo systemctl start node_exporter.service