...

Text file src/edge-infra.dev/config/pallets/sds/etcd/service-monitor.yaml

Documentation: edge-infra.dev/config/pallets/sds/etcd

     1apiVersion: monitoring.coreos.com/v1
     2kind: ServiceMonitor
     3metadata:
     4  name: etcd
     5  namespace: kube-system
     6  labels:
     7    component: etcd
     8  annotations:
     9    ## https://kubernetes.io/docs/reference/instrumentation/metrics/
    10    monitoring.edge.ncr.com/allowed-metrics: |
    11      etcd_mvcc_db_total_size_in_bytes
    12spec:
    13  selector:
    14    matchLabels:
    15      component: etcd
    16      tier: control-plane
    17  endpoints:
    18  - port: metrics
    19    interval: 60s
    20    metricRelabelings:
    21    - action: keep
    22      regex: etcd.*
    23      sourceLabels:
    24      - __name__
    25    path: /metrics
    26    relabelings:
    27    - action: replace
    28      sourceLabels:
    29      - __meta_kubernetes_pod_node_name
    30      targetLabel: instance

View as plain text