github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/manifests/prometheus-operator/vao_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-application-operator 
     8    namespace: {{ .monitoringNamespace }}
     9    labels:
    10      release: prometheus-operator 
    11  spec:
    12    namespaceSelector:
    13      matchNames:
    14      - {{ .systemNamespace }} 
    15    selector: 
    16      matchLabels:
    17        app: verrazzano-application-operator
    18    endpoints:
    19    - relabelings:
    20        - sourceLabels:
    21            - __meta_kubernetes_service_name
    22            - __meta_kubernetes_endpoint_port_name
    23          regex: verrazzano-application-operator;http-metric
    24          action: keep
    25        - sourceLabels:
    26            - __meta_kubernetes_service_label_app
    27          targetLabel: app
    28        - action: replace
    29          targetLabel: verrazzano_cluster
    30          replacement: local
    31      enableHttp2: false