Prometheus: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 3: | Zeile 3: | ||
= Installation = | = Installation = | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
apt install prometheus | apt install prometheus gnupg2 curl software-properties-common | ||
curl -fsSL https://packages.grafana.com/gpg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/grafana.gpg | |||
add-apt-repository "deb https://packages.grafana.com/oss/deb stable main" | |||
apt update && apt -y install grafana | |||
systemctl start grafana-server | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Zeile 9: | Zeile 13: | ||
* /etc/prometheus/prometheus.yaml | * /etc/prometheus/prometheus.yaml | ||
<pre> | <pre> | ||
openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout node_exporter.key -out node_exporter.crt \ | |||
-subj "/C=DE/ST=Bavaria/L=infeos/O=infeos.de/OU=IT/CN=prometheus.infeos.de" \ | |||
-addext "subjectAltName = IP:167.86.105.27" | |||
</pre> | </pre> | ||
* /etc/default/prometheus | * /etc/default/prometheus | ||
Zeile 14: | Zeile 21: | ||
ARGS="--web.listen-address=19090" | ARGS="--web.listen-address=19090" | ||
</pre> | </pre> | ||
* /etc/grafana/grafana.ini | |||
= Dateien/Verzeichnisse = | = Dateien/Verzeichnisse = | ||
* /lib/systemd/system/prometheus.service | * /lib/systemd/system/prometheus.service |
Aktuelle Version vom 14. Februar 2023, 18:01 Uhr
Installation[Bearbeiten]
apt install prometheus gnupg2 curl software-properties-common
curl -fsSL https://packages.grafana.com/gpg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/grafana.gpg
add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
apt update && apt -y install grafana
systemctl start grafana-server
Konfiguration[Bearbeiten]
- /etc/prometheus/prometheus.yaml
openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout node_exporter.key -out node_exporter.crt \ -subj "/C=DE/ST=Bavaria/L=infeos/O=infeos.de/OU=IT/CN=prometheus.infeos.de" \ -addext "subjectAltName = IP:167.86.105.27"
- /etc/default/prometheus
ARGS="--web.listen-address=19090"
- /etc/grafana/grafana.ini
Dateien/Verzeichnisse[Bearbeiten]
- /lib/systemd/system/prometheus.service