github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/manifests/prometheus-operator/vpo_monitor.yaml (about)

     1  # Copyright (c) 2022, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  apiVersion: monitoring.coreos.com/v1
     5  kind: ServiceMonitor
     6  metadata:
     7    name: verrazzano-platform-operator
     8    namespace: {{ .monitoringNamespace }} 
     9    labels:
    10      release: prometheus-operator 
    11  spec:
    12    namespaceSelector:
    13      matchNames:
    14        - {{ .installNamespace }}
    15    selector: {}
    16    endpoints:
    17    - relabelings:
    18        - sourceLabels:
    19            - __meta_kubernetes_service_name
    20            - __meta_kubernetes_endpoint_port_name
    21          regex: verrazzano-platform-operator;http-metric
    22          action: keep
    23        - sourceLabels:
    24            - __meta_kubernetes_service_label_app
    25          targetLabel: app
    26        - action: replace
    27          targetLabel: verrazzano_cluster
    28          replacement: local
    29      enableHttp2: false