From 34f1b535442a9042302f7b9b57124fcf2aeaf348 Mon Sep 17 00:00:00 2001 From: rasmus Date: Sun, 28 Jul 2024 20:00:30 +0300 Subject: [PATCH] zrepl: prometheus target --- ansible/zrepl/prom.yaml | 23 +++++++++++++++++++++++ monitoring/zrepl.yaml | 1 + 2 files changed, 24 insertions(+) create mode 100644 ansible/zrepl/prom.yaml create mode 120000 monitoring/zrepl.yaml diff --git a/ansible/zrepl/prom.yaml b/ansible/zrepl/prom.yaml new file mode 100644 index 0000000..c4d99d5 --- /dev/null +++ b/ansible/zrepl/prom.yaml @@ -0,0 +1,23 @@ +--- +apiVersion: monitoring.coreos.com/v1 +kind: Probe +metadata: + name: zrepl +spec: + scrapeTimeout: 30s + targets: + staticConfig: + static: + - nas.mgmt.k-space.ee:9811 +# - offsite.k-space.ee:9811 # TODO: unreachable + relabelingConfigs: + - sourceLabels: [__param_target] + targetLabel: instance + - sourceLabels: [__param_target] + targetLabel: __address__ + prober: + url: localhost + path: /metrics + metricRelabelings: + - sourceLabels: [__address__] + targetLabel: target diff --git a/monitoring/zrepl.yaml b/monitoring/zrepl.yaml new file mode 120000 index 0000000..59af590 --- /dev/null +++ b/monitoring/zrepl.yaml @@ -0,0 +1 @@ +../ansible/zrepl/prom.yaml \ No newline at end of file