README.md aktualisiert

This commit is contained in:
M_Viper 2024-02-15 15:27:52 +00:00
parent 4c985811c8
commit c80d77d19f
1 changed files with 6 additions and 10 deletions

View File

@ -1,8 +1,9 @@
<p align="center"> <p align="center">
## Prometheus Node-Explorer Grafana
## Prometheus Node-Explorer Grafana
</p> </p>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p>
## Prometheus docker Install ## Prometheus docker Install
@ -32,7 +33,6 @@ Wer die Retention Time setzen möchte fügt folgendes hinzu. (Aufbewahrungszeit)
<code>--storage.tsdb.retention.time=30d --config.file=/etc/prometheus/prometheus.yml</code> <code>--storage.tsdb.retention.time=30d --config.file=/etc/prometheus/prometheus.yml</code>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p>
## Prometheus Konfiguration prometheus.yml ## Prometheus Konfiguration prometheus.yml
<pre><span># my global config <pre><span># my global config
@ -82,7 +82,6 @@ scrape_configs:
static_configs: static_configs:
- targets: ["127.0.0.1:9100"] - targets: ["127.0.0.1:9100"]
</pre></span> </pre></span>
<p>&nbsp;</p>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p> <p>&nbsp;</p>
## Node Exporter installieren ## Node Exporter installieren
@ -98,11 +97,9 @@ tar xvfz node_exporter-1.3.1.linux-amd64.tar.gz
cd node_exporter-*.*-amd64 cd node_exporter-*.*-amd64
./node_exporter </pre></span> ./node_exporter </pre></span>
<p>&nbsp;</p>
<p>&nbsp;</p> <p>&nbsp;</p>
<p><a href="https://github.com/prometheus/node_exporter/releases" target="_blank">Github Node-Exporter</a></p> <p><a href="https://github.com/prometheus/node_exporter/releases" target="_blank">Github Node-Exporter</a></p>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p>
# Start Skript für Node Exporter # Start Skript für Node Exporter
@ -127,8 +124,8 @@ systemctl status node_exporter</pre></span>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p>
## Node Exporter mit Docker starten (Alternative) ## Node Exporter mit Docker starten (Alternative)
<pre><span>docker run -d \ <pre><span>docker run -d \
--net="host" \ --net="host" \
@ -141,8 +138,7 @@ systemctl status node_exporter</pre></span>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p> ## Grafana Docker installieren
## Grafana Docker installieren
<pre><span>docker run \ <pre><span>docker run \
-p 3000:3000 \ -p 3000:3000 \