merge: 合入 main 并保留两侧监控资源声明
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PodMonitor
|
||||
metadata:
|
||||
name: cnpg
|
||||
namespace: monitoring
|
||||
spec:
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- shared-db
|
||||
selector:
|
||||
matchLabels:
|
||||
cnpg.io/cluster: shared-postgresql
|
||||
cnpg.io/podRole: instance
|
||||
podTargetLabels:
|
||||
- cnpg.io/cluster
|
||||
podMetricsEndpoints:
|
||||
- port: metrics
|
||||
interval: 30s
|
||||
honorLabels: true
|
||||
relabelings:
|
||||
- targetLabel: job
|
||||
replacement: cnpg
|
||||
@@ -0,0 +1,57 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: cert-manager
|
||||
namespace: monitoring
|
||||
spec:
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- cert-manager
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: cert-manager
|
||||
app.kubernetes.io/component: controller
|
||||
jobLabel: app.kubernetes.io/name
|
||||
endpoints:
|
||||
- port: http-metrics
|
||||
interval: 30s
|
||||
scrapeTimeout: 10s
|
||||
honorLabels: true
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PodMonitor
|
||||
metadata:
|
||||
name: external-secrets
|
||||
namespace: monitoring
|
||||
spec:
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- external-secrets
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/instance: external-secrets
|
||||
jobLabel: app.kubernetes.io/name
|
||||
podMetricsEndpoints:
|
||||
- port: metrics
|
||||
interval: 30s
|
||||
scrapeTimeout: 10s
|
||||
honorLabels: true
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PodMonitor
|
||||
metadata:
|
||||
name: flux-controllers
|
||||
namespace: monitoring
|
||||
spec:
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- flux-system
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/part-of: flux
|
||||
jobLabel: app
|
||||
podMetricsEndpoints:
|
||||
- port: http-prom
|
||||
interval: 30s
|
||||
scrapeTimeout: 10s
|
||||
honorLabels: true
|
||||
@@ -0,0 +1,25 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: seaweedfs
|
||||
namespace: monitoring
|
||||
spec:
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- seaweedfs
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: seaweedfs
|
||||
app.kubernetes.io/instance: seaweedfs
|
||||
endpoints:
|
||||
- port: metrics
|
||||
interval: 30s
|
||||
honorLabels: true
|
||||
relabelings:
|
||||
- sourceLabels:
|
||||
- __meta_kubernetes_service_name
|
||||
regex: seaweedfs-(master|volume|filer)
|
||||
action: keep
|
||||
- sourceLabels:
|
||||
- __meta_kubernetes_service_name
|
||||
targetLabel: job
|
||||
Reference in New Issue
Block a user