...

Text file src/edge-infra.dev/config/pallets/sds/spegel/base/servicemonitor.yaml

Documentation: edge-infra.dev/config/pallets/sds/spegel/base

     1apiVersion: monitoring.coreos.com/v1
     2kind: ServiceMonitor
     3metadata:
     4  name: spegel-metrics
     5  namespace: spegel
     6  labels:
     7    app.kubernetes.io/name: spegel
     8  annotations:
     9    monitoring.edge.ncr.com/allowed-metrics: |
    10      spegel_mirror_requests_total
    11spec:
    12  selector:
    13    matchLabels:
    14      app.kubernetes.io/component: metrics
    15      app.kubernetes.io/name: spegel
    16  endpoints:
    17  - port: metrics
    18    interval: 60s
    19    metricRelabelings:
    20    - action: keep
    21      regex: spegel_mirror_requests_total
    22      sourceLabels:
    23      - __name__

View as plain text