From 4bd9e36ff45b2001b048a23a218e26605deac7d0 Mon Sep 17 00:00:00 2001 From: Georg Date: Fri, 6 Aug 2021 17:42:45 +0200 Subject: Mass Commit 06/08/2021 Signed-off-by: Georg --- Prometheus-CachetHQ/README.md | 1 + Prometheus-CachetHQ/config.yaml | 88 +++++++++++++++++++++++++ Prometheus-CachetHQ/prometheus-cachethq.service | 13 ++++ 3 files changed, 102 insertions(+) create mode 100644 Prometheus-CachetHQ/README.md create mode 100644 Prometheus-CachetHQ/config.yaml create mode 100644 Prometheus-CachetHQ/prometheus-cachethq.service (limited to 'Prometheus-CachetHQ') diff --git a/Prometheus-CachetHQ/README.md b/Prometheus-CachetHQ/README.md new file mode 100644 index 0000000..a93cb01 --- /dev/null +++ b/Prometheus-CachetHQ/README.md @@ -0,0 +1 @@ +There are multiple pieces of software going by similar names. Most of them are very outdated and faulty, we ended up using https://github.com/oxyno-zeta/prometheus-cachethq with slight modifications (hardcoded listening addresses, as the config value did not work for some reason). diff --git a/Prometheus-CachetHQ/config.yaml b/Prometheus-CachetHQ/config.yaml new file mode 100644 index 0000000..dd2578e --- /dev/null +++ b/Prometheus-CachetHQ/config.yaml @@ -0,0 +1,88 @@ +# Log configuration +log: + # Log level + level: debug + # Log format + format: text + +# Server configurations +server: + listenAddr: "127.0.0.2" + port: 8081 + +# Cachet configuration +cachet: + url: http://172.16.9.2:8033 + apiKey: $CACHETAPIKEY + +# Targets +targets: +# - component: +# name: nginx +# status: PARTIAL_OUTAGE +# groupName: LibertaCasa +# alerts: +# - name: lysergic-nginx-down +# - component: +# name: Node_Exporter_Mercury +# status: PARTIAL_OUTAGE +# groupName: LibertaCasa +# alerts: +# - name: lysergic-node-down + - component: + name: Jitsi + status: PARTIAL_OUTAGE + alerts: + - name: JITSI-WEB-DOWN + - component: + name: Element + status: PARTIAL_OUTAGE + groupName: LibertaCasa + alerts: + - name: ELEMENT-WEB-DOWN + - component: + name: Gitea + status: PARTIAL_OUTAGE + alerts: + - name: GITEA-WEB-DOWN + - component: + name: cgit + status: PARTIAL_OUTAGE + groupName: LibertaCasa + alerts: + - name: CGIT-WEB-DOWN + - component: + name: Etherpad + status: PARTIAL_OUTAGE + alerts: + - name: ETHERPAD-WEB-DOWN + - component: + name: PrivateBin + status: PARTIAL_OUTAGE + alerts: + - name: PASTA-WEB-DOWN + - component: + name: Website + status: PARTIAL_OUTAGE + groupName: xKek + alerts: + - name: XKEK-WEB-DOWN + - component: + name: SearX + status: PARTIAL_OUTAGE + groupName: xKek + alerts: + - name: SEARX-WEB-DOWN + - component: + name: Yacy + status: PARTIAL_OUTAGE + groupName: xKek + alerts: + - name: YACY-WEB-DOWN + # - labels: + # label1: value1 + # incident: + # name: "" + # content: "" + # status: INVESTIGATING + # public: true diff --git a/Prometheus-CachetHQ/prometheus-cachethq.service b/Prometheus-CachetHQ/prometheus-cachethq.service new file mode 100644 index 0000000..16b9f8a --- /dev/null +++ b/Prometheus-CachetHQ/prometheus-cachethq.service @@ -0,0 +1,13 @@ +[Unit] +Description=Prometheus-CachetHQ +After=network.target prometheus.service + +[Service] +User=cachet +Group=cachet +Type=simple +WorkingDirectory=/opt/prometheus-cachethq +ExecStart=/opt/prometheus-cachethq/prometheus-cachethq + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3