github.com/verrazzano/verrazzano@v1.7.1/platform-operator/thirdparty/manifests/prometheus-operator/envoy_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: PodMonitor 6 metadata: 7 name: envoy-stats 8 namespace: {{ .monitoringNamespace }} 9 labels: 10 release: prometheus-operator 11 spec: 12 selector: {} 13 namespaceSelector: 14 any: true 15 podMetricsEndpoints: 16 - path: /stats/prometheus 17 enableHttp2: false 18 relabelings: 19 - sourceLabels: 20 - __meta_kubernetes_pod_container_port_name 21 regex: .*-envoy-prom 22 action: keep 23 # Ignore pods that are created by CronJobs and in Completed state 24 - sourceLabels: 25 - __meta_kubernetes_pod_phase 26 regex: Succeeded 27 action: drop 28 - sourceLabels: 29 - __address__ 30 - __meta_kubernetes_pod_annotation_prometheus_io_port 31 regex: ([^:]+)(?::\d+)?;(\d+) 32 action: replace 33 replacement: $1:15090 34 targetLabel: __address__ 35 - action: labeldrop 36 regex: __meta_kubernetes_pod_label_(.+) 37 - sourceLabels: 38 - __meta_kubernetes_namespace 39 action: replace 40 targetLabel: namespace 41 - sourceLabels: 42 - __meta_kubernetes_pod_name 43 action: replace 44 targetLabel: pod_name 45 - action: replace 46 targetLabel: verrazzano_cluster 47 replacement: local