From ba86a4cb2a27ebe100b2cef304c4ca0d8831d8e9 Mon Sep 17 00:00:00 2001 From: redbeardymcgee Date: Thu, 26 Dec 2024 09:06:48 -0600 Subject: [PATCH] feat(prometheus): add prometheus monitoring --- README.md | 1 + quadlets/prometheus/data.volume | 3 +++ quadlets/prometheus/prometheus.container | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 quadlets/prometheus/data.volume create mode 100644 quadlets/prometheus/prometheus.container diff --git a/README.md b/README.md index 9629afe..9e64828 100644 --- a/README.md +++ b/README.md @@ -203,6 +203,7 @@ that I intend to add to this repository. It is still growing, and I welcome - [ ] [Pocket ID](https://github.com/stonith404/pocket-id) - [ ] [Pod Arcade](https://www.pod-arcade.com/) - [ ] [Postiz](https://postiz.com/) +- [x] [Prometheus](https://prometheus.io) - [x] [protonmail-bridge-docker](https://github.com/shenxn/protonmail-bridge-docker) - [x] [Prowlarr](https://prowlarr.com) - [x] [qbit_manage](https://github.com/StuffAnThings/qbit_manage) diff --git a/quadlets/prometheus/data.volume b/quadlets/prometheus/data.volume new file mode 100644 index 0000000..9d06944 --- /dev/null +++ b/quadlets/prometheus/data.volume @@ -0,0 +1,3 @@ +[Volume] +VolumeName=prometheus-data + diff --git a/quadlets/prometheus/prometheus.container b/quadlets/prometheus/prometheus.container new file mode 100644 index 0000000..3c01140 --- /dev/null +++ b/quadlets/prometheus/prometheus.container @@ -0,0 +1,20 @@ +[Unit] +Description=Prometheus monitoring + +[Service] +Restart=on-failure +TimeoutStartSec=900 + +[Install] +WantedBy=default.target + +[Container] +Image=docker.io/prom/prometheus +ContainerName=prometheus + +HostName=prometheus +PublishPort=9090:9090 + +Volume=prometheus-data:/prometheus +Volume=./prometheus.yml:/etc/prometheus/prometheus.yml +