Prometheus: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 13: | 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 |
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