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