...

Text file src/edge-infra.dev/config/pallets/o11y/grafana-operator/servicemonitor.yaml

Documentation: edge-infra.dev/config/pallets/o11y/grafana-operator

     1apiVersion: monitoring.coreos.com/v1
     2kind: ServiceMonitor
     3metadata:
     4  name: grafana-operator
     5  namespace: grafana-operator
     6  annotations:
     7    monitoring.edge.ncr.com/allowed-metrics: |
     8      {job="grafana-operator-metrics-service"}
     9spec:
    10  selector:
    11    matchLabels:
    12      app.kubernetes.io/name: grafana-operator
    13  endpoints:
    14  - port: metrics
    15    metricRelabelings:
    16    - action: replace
    17      replacement: grafana_operator_$${1}
    18      sourceLabels:
    19      - __name__
    20      targetLabel: __name__
    21    - action: keep
    22      regex: grafana_operator_controller_runtime_reconcile(|_errors)_total
    23      sourceLabels:
    24      - __name__

View as plain text