zrepl: prometheus target

This commit is contained in:
rasmus 2024-07-28 20:00:30 +03:00
parent fd1aeaa1a3
commit 34f1b53544
2 changed files with 24 additions and 0 deletions

23
ansible/zrepl/prom.yaml Normal file
View File

@ -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

1
monitoring/zrepl.yaml Symbolic link
View File

@ -0,0 +1 @@
../ansible/zrepl/prom.yaml