core-deployments/apt-version-exporter/servicemonitor.yaml
Tom Neuber 459870309f
Some checks are pending
ci/woodpecker/push/yamllint Pipeline is pending
feat(apt-version-exporter): add apt-version-exporter to core-deployments
2025-01-28 09:40:02 +01:00

28 lines
705 B
YAML

---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app: apt-version-exporter
app.kubernetes.io/instance: apt-version-exporter
app.kubernetes.io/name: apt-version-exporter
name: apt-version-exporter-servicemonitor
namespace: apt-version-exporter
spec:
attachMetadata:
node: false
endpoints:
- interval: 2h
path: /metrics
port: http-metrics
relabelings:
- action: replace
sourceLabels:
- __meta_kubernetes_endpoint_node_name
targetLabel: node
scheme: http
jobLabel: jobLabel
selector:
matchLabels:
app.kubernetes.io/instance: apt-version-exporter
app.kubernetes.io/name: apt-version-exporter