github.com/verrazzano/verrazzano@v1.7.0/application-operator/testdata/templates/prometheus_scrape_configs.yaml (about) 1 # Copyright (c) 2020, 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 scrape_configs: 4 - job_name: ##JOB_NAME## 5 kubernetes_sd_configs: 6 - namespaces: 7 names: 8 - ##NAMESPACE## 9 role: pod 10 relabel_configs: 11 - action: replace 12 replacement: ##VERRAZZANO_CLUSTER_NAME## 13 source_labels: null 14 target_label: verrazzano_cluster 15 - action: keep 16 regex: true;##APP_NAME##;##COMP_NAME## 17 source_labels: 18 - __meta_kubernetes_pod_annotation_verrazzano_io_metricsEnabled 19 - __meta_kubernetes_pod_label_app_oam_dev_name 20 - __meta_kubernetes_pod_label_app_oam_dev_component 21 - action: replace 22 regex: (.+) 23 source_labels: 24 - __meta_kubernetes_pod_annotation_verrazzano_io_metricsPath 25 target_label: __metrics_path__ 26 - action: replace 27 regex: ([^:]+)(?::\d+)?;(\d+) 28 replacement: $1:$2 29 source_labels: 30 - __address__ 31 - __meta_kubernetes_pod_annotation_verrazzano_io_metricsPort 32 target_label: __address__ 33 - action: replace 34 regex: (.*) 35 replacement: $1 36 source_labels: 37 - __meta_kubernetes_namespace 38 target_label: namespace 39 - action: labelmap 40 regex: __meta_kubernetes_pod_label_(.+) 41 - action: replace 42 source_labels: 43 - __meta_kubernetes_pod_name 44 target_label: pod_name 45 - action: labeldrop 46 regex: (controller_revision_hash) 47 - action: replace 48 regex: .*/(.*)$ 49 replacement: $1 50 source_labels: 51 - name 52 target_label: webapp 53 ##SSL_PROTOCOL##