Files
homelab-infra/platform/observability/metrics/scrapes/seaweedfs.yaml
T
panxiao81 b75043cb45
yaml / yaml (push) Successful in 2m53s
补齐证书、秘密同步、GitOps 与数据服务监控 (#160)
Co-authored-by: panxiao81 <[email protected]>
2026-09-25 19:36:30 +00:00

26 lines
575 B
YAML

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