From a883142737284c0092dd8d159b8cf010b3ec28b7 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Fri, 16 Sep 2022 08:35:37 +0200 Subject: [PATCH] Initial configuration. --- .drone.yml | 18 ++++++++++++++++++ Dockerfile | 3 +++ prometheus.yml | 17 +++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile create mode 100644 prometheus.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..178e57d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,18 @@ +kind: pipeline +name: default + +steps: + - name: build container + image: plugins/docker + settings: + dockerfile: Dockerfile + username: + from_secret: registry-username + password: + from_secret: registry-password + registry: https://cs-registry.ddnss.de + repo: cs-registry.ddnss.de/${DRONE_REPO_OWNER}/prometheus + dry_run: false + purge: false + tags: + - ${DRONE_TAG} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fa83d4a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM prom/prometheus +ADD prometheus.yml /etc/prometheus/ + diff --git a/prometheus.yml b/prometheus.yml new file mode 100644 index 0000000..055e107 --- /dev/null +++ b/prometheus.yml @@ -0,0 +1,17 @@ +global: + scrape_interval: 10s + external_labels: + monitor: strato-production-monitor +scrape_configs: + - job_name: prometheus + static_configs: + - targets: ['prometheus.steinle-computer.de'] + - job_name: node-exporter + static_configs: + - targets: ['node-exporter.steinle-computer.de'] + - job_name: traefik + static_configs: + - targets: ['traefik.steinle-computer.de'] + - basic_auth: + - username: chris + - password: 9VJqWNxku4hHdB2zhjk4GHyMLQHCZX