Prometheus

Aus Info-Theke
Version vom 14. Februar 2023, 18:01 Uhr von Hamatoma (Diskussion | Beiträge) (→‎Konfiguration)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen


Installation

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

  • /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

  • /lib/systemd/system/prometheus.service