Adding rgbg-living in prometheus

This commit is contained in:
Moritz Graf
2022-10-31 17:46:45 +01:00
parent 456bd15041
commit 6df6bbc6dd
3 changed files with 107 additions and 1 deletions
+56
View File
@@ -0,0 +1,56 @@
# ---
# kind: "Service"
# apiVersion: "v1"
# metadata:
# namespace: monitoring
# name: muc-kitchen
# labels:
# app: muc-kitchen
# spec:
# type: ExternalName
# externalName: dyndns-muc.moritzgraf.de
# selector:
# app: muc-kitchen
# ---
# apiVersion: v1
# kind: Endpoints
# metadata:
# name: muc-kitchen
# namespace: monitoring
# labels:
# app: muc-kitchen
# subsets:
# - addresses:
# - ip: 1.2.3.4
# - ip: 1.2.3.5
# ports:
# - port: 30200
# protocol: TCP
# ---
# apiVersion: monitoring.coreos.com/v1
# kind: ServiceMonitor
# metadata:
# name: muc-kitchen
# namespace: monitoring
# spec:
# endpoints:
# - path: /metrics
# interval: 15s
# targetPort: 30200
# scheme: http
# relabelings:
# - sourceLabels: [__address__]
# targetLabel: __address__
# regex: (.*)
# replacement: "dyndns-muc.moritzgraf.de:30200"
# action: replace
# jobLabel: muc-kitchen
# namespaceSelector:
# matchNames:
# - monitoring
# selector:
# matchExpressions:
# - key: app
# operator: In
# values: ["muc-kitchen"]