github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/manifests/prometheus-operator/jaeger_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: jaeger
     8    namespace: {{ .monitoringNamespace }}
     9    labels:
    10      release: prometheus-operator
    11  spec:
    12    namespaceSelector:
    13      matchNames:
    14        - {{ .monitoringNamespace }}
    15    selector: {}
    16    endpoints:
    17    - path: /metrics
    18      enableHttp2: false
    19    {{ if .isIstioEnabled }}
    20      scheme: https
    21      tlsConfig:
    22        caFile: /etc/istio-certs/root-cert.pem
    23        certFile: /etc/istio-certs/cert-chain.pem
    24        keyFile: /etc/istio-certs/key.pem
    25        insecureSkipVerify: true
    26  {{ else }}
    27      scheme: http
    28  {{ end }}
    29      relabelings:
    30      - action: replace
    31        replacement: local
    32        targetLabel: verrazzano_cluster
    33      - action: keep
    34        regex: true;jaeger-(operator-jaeger|verrazzano-managed-cluster)-(query|collector);admin-http
    35        sourceLabels:
    36        - __meta_kubernetes_pod_annotation_prometheus_io_scrape
    37        - __meta_kubernetes_service_name
    38        - __meta_kubernetes_pod_container_port_name
    39      - action: replace
    40        regex: (.*)
    41        replacement: $1
    42        sourceLabels:
    43        - __meta_kubernetes_namespace
    44        targetLabel: namespace
    45      - action: labelmap
    46        regex: __meta_kubernetes_pod_label_(.+)
    47      - action: replace
    48        sourceLabels:
    49        - __meta_kubernetes_pod_name
    50        targetLabel: pod_name
    51      - action: labeldrop
    52        regex: (controller_revision_hash)
    53      - action: replace
    54        regex: .*/(.*)$
    55        replacement: $1
    56        sourceLabels:
    57        - name
    58        targetLabel: app