summaryrefslogtreecommitdiffstats
path: root/Prometheus-CachetHQ
diff options
context:
space:
mode:
authorGeorg2021-08-06 17:42:45 +0200
committerGeorg2021-08-06 17:42:45 +0200
commit4bd9e36ff45b2001b048a23a218e26605deac7d0 (patch)
tree4b592921aa4cbf98d75059f9223712b6ddcc1799 /Prometheus-CachetHQ
parent1791f4374b72e5bd45dfbe6d2e543d0537f711e0 (diff)
downloadmonitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.tar.gz
monitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.tar.bz2
monitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.zip
Mass Commit 06/08/2021
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'Prometheus-CachetHQ')
-rw-r--r--Prometheus-CachetHQ/README.md1
-rw-r--r--Prometheus-CachetHQ/config.yaml88
-rw-r--r--Prometheus-CachetHQ/prometheus-cachethq.service13
3 files changed, 102 insertions, 0 deletions
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