github.com/verrazzano/verrazzano@v1.7.0/application-operator/testdata/templates/prometheus_configmap.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  apiVersion: v1
     4  data:
     5    prometheus.yml: |
     6      global:
     7        scrape_interval: 15s
     8      scrape_configs:
     9      - job_name: istio-mesh
    10        kubernetes_sd_configs:
    11        - namespaces:
    12            names:
    13            - istio-system
    14          role: endpoints
    15        relabel_configs:
    16        - action: keep
    17          regex: istio-telemetry;prometheus
    18          source_labels:
    19          - __meta_kubernetes_service_name
    20          - __meta_kubernetes_endpoint_port_name
    21      - job_name: envoy-stats
    22        kubernetes_sd_configs:
    23        - role: pod
    24        metrics_path: /stats/prometheus
    25        relabel_configs:
    26        - action: keep
    27          regex: .*-envoy-prom
    28          source_labels:
    29          - __meta_kubernetes_pod_container_port_name
    30        - action: replace
    31          regex: ([^:]+)(?::\d+)?;(\d+)
    32          replacement: $1:15090
    33          source_labels:
    34          - __address__
    35          - __meta_kubernetes_pod_annotation_prometheus_io_port
    36          target_label: __address__
    37        - action: labelmap
    38          regex: __meta_kubernetes_pod_label_(.+)
    39        - action: replace
    40          source_labels:
    41          - __meta_kubernetes_namespace
    42          target_label: namespace
    43        - action: replace
    44          source_labels:
    45          - __meta_kubernetes_pod_name
    46          target_label: pod_name
    47      - job_name: istio-policy
    48        kubernetes_sd_configs:
    49        - namespaces:
    50            names:
    51            - istio-system
    52          role: endpoints
    53        relabel_configs:
    54        - action: keep
    55          regex: istio-policy;http-monitoring
    56          source_labels:
    57          - __meta_kubernetes_service_name
    58          - __meta_kubernetes_endpoint_port_name
    59      - job_name: istio-telemetry
    60        kubernetes_sd_configs:
    61        - namespaces:
    62            names:
    63            - istio-system
    64          role: endpoints
    65        relabel_configs:
    66        - action: keep
    67          regex: istio-telemetry;http-monitoring
    68          source_labels:
    69          - __meta_kubernetes_service_name
    70          - __meta_kubernetes_endpoint_port_name
    71      - job_name: pilot
    72        kubernetes_sd_configs:
    73        - namespaces:
    74            names:
    75            - istio-system
    76          role: endpoints
    77        relabel_configs:
    78        - action: keep
    79          regex: istio-pilot;http-monitoring
    80          source_labels:
    81          - __meta_kubernetes_service_name
    82          - __meta_kubernetes_endpoint_port_name
    83      - job_name: galley
    84        kubernetes_sd_configs:
    85        - namespaces:
    86            names:
    87            - istio-system
    88          role: endpoints
    89        relabel_configs:
    90        - action: keep
    91          regex: istio-galley;http-monitoring
    92          source_labels:
    93          - __meta_kubernetes_service_name
    94          - __meta_kubernetes_endpoint_port_name
    95      - job_name: citadel
    96        kubernetes_sd_configs:
    97        - namespaces:
    98            names:
    99            - istio-system
   100          role: endpoints
   101        relabel_configs:
   102        - action: keep
   103          regex: istio-citadel;http-monitoring
   104          source_labels:
   105          - __meta_kubernetes_service_name
   106          - __meta_kubernetes_endpoint_port_name
   107      - bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
   108        job_name: kubernetes-apiservers
   109        kubernetes_sd_configs:
   110        - namespaces:
   111            names:
   112            - default
   113          role: endpoints
   114        relabel_configs:
   115        - action: keep
   116          regex: kubernetes;https
   117          source_labels:
   118          - __meta_kubernetes_service_name
   119          - __meta_kubernetes_endpoint_port_name
   120        scheme: https
   121        tls_config:
   122          ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
   123      - bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
   124        job_name: kubernetes-nodes
   125        kubernetes_sd_configs:
   126        - role: node
   127        relabel_configs:
   128        - action: labelmap
   129          regex: __meta_kubernetes_node_label_(.+)
   130        - replacement: kubernetes.default.svc:443
   131          target_label: __address__
   132        - regex: (.+)
   133          replacement: /api/v1/nodes/${1}/proxy/metrics
   134          source_labels:
   135          - __meta_kubernetes_node_name
   136          target_label: __metrics_path__
   137        scheme: https
   138        tls_config:
   139          ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
   140      - bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
   141        job_name: kubernetes-cadvisor
   142        kubernetes_sd_configs:
   143        - role: node
   144        relabel_configs:
   145        - action: labelmap
   146          regex: __meta_kubernetes_node_label_(.+)
   147        - replacement: kubernetes.default.svc:443
   148          target_label: __address__
   149        - regex: (.+)
   150          replacement: /api/v1/nodes/${1}/proxy/metrics/cadvisor
   151          source_labels:
   152          - __meta_kubernetes_node_name
   153          target_label: __metrics_path__
   154        scheme: https
   155        tls_config:
   156          ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
   157      - job_name: kubernetes-service-endpoints
   158        kubernetes_sd_configs:
   159        - role: endpoints
   160        relabel_configs:
   161        - action: keep
   162          regex: true
   163          source_labels:
   164          - __meta_kubernetes_service_annotation_prometheus_io_scrape
   165        - action: replace
   166          regex: (https?)
   167          source_labels:
   168          - __meta_kubernetes_service_annotation_prometheus_io_scheme
   169          target_label: __scheme__
   170        - action: replace
   171          regex: (.+)
   172          source_labels:
   173          - __meta_kubernetes_service_annotation_prometheus_io_path
   174          target_label: __metrics_path__
   175        - action: replace
   176          regex: ([^:]+)(?::\d+)?;(\d+)
   177          replacement: $1:$2
   178          source_labels:
   179          - __address__
   180          - __meta_kubernetes_service_annotation_prometheus_io_port
   181          target_label: __address__
   182        - action: labelmap
   183          regex: __meta_kubernetes_service_label_(.+)
   184        - action: replace
   185          source_labels:
   186          - __meta_kubernetes_namespace
   187          target_label: kubernetes_namespace
   188        - action: replace
   189          source_labels:
   190          - __meta_kubernetes_service_name
   191          target_label: kubernetes_name
   192      - job_name: kubernetes-pods
   193        kubernetes_sd_configs:
   194        - role: pod
   195        relabel_configs:
   196        - action: keep
   197          regex: true
   198          source_labels:
   199          - __meta_kubernetes_pod_annotation_prometheus_io_scrape
   200        - action: keep
   201          regex: ((;.*)|(.*;http))
   202          source_labels:
   203          - __meta_kubernetes_pod_annotation_sidecar_istio_io_status
   204          - __meta_kubernetes_pod_annotation_prometheus_io_scheme
   205        - action: drop
   206          regex: (true)
   207          source_labels:
   208          - __meta_kubernetes_pod_annotation_istio_mtls
   209        - action: replace
   210          regex: (.+)
   211          source_labels:
   212          - __meta_kubernetes_pod_annotation_prometheus_io_path
   213          target_label: __metrics_path__
   214        - action: replace
   215          regex: ([^:]+)(?::\d+)?;(\d+)
   216          replacement: $1:$2
   217          source_labels:
   218          - __address__
   219          - __meta_kubernetes_pod_annotation_prometheus_io_port
   220          target_label: __address__
   221        - action: labelmap
   222          regex: __meta_kubernetes_pod_label_(.+)
   223        - action: replace
   224          source_labels:
   225          - __meta_kubernetes_namespace
   226          target_label: namespace
   227        - action: replace
   228          source_labels:
   229          - __meta_kubernetes_pod_name
   230          target_label: pod_name
   231      - job_name: kubernetes-pods-istio-secure
   232        kubernetes_sd_configs:
   233        - role: pod
   234        relabel_configs:
   235        - action: keep
   236          regex: true
   237          source_labels:
   238          - __meta_kubernetes_pod_annotation_prometheus_io_scrape
   239        - action: keep
   240          regex: (([^;]+);([^;]*))|(([^;]*);(true))
   241          source_labels:
   242          - __meta_kubernetes_pod_annotation_sidecar_istio_io_status
   243          - __meta_kubernetes_pod_annotation_istio_mtls
   244        - action: drop
   245          regex: (http)
   246          source_labels:
   247          - __meta_kubernetes_pod_annotation_prometheus_io_scheme
   248        - action: replace
   249          regex: (.+)
   250          source_labels:
   251          - __meta_kubernetes_pod_annotation_prometheus_io_path
   252          target_label: __metrics_path__
   253        - action: keep
   254          regex: ([^:]+):(\d+)
   255          source_labels:
   256          - __address__
   257        - action: replace
   258          regex: ([^:]+)(?::\d+)?;(\d+)
   259          replacement: $1:$2
   260          source_labels:
   261          - __address__
   262          - __meta_kubernetes_pod_annotation_prometheus_io_port
   263          target_label: __address__
   264        - action: labelmap
   265          regex: __meta_kubernetes_pod_label_(.+)
   266        - action: replace
   267          source_labels:
   268          - __meta_kubernetes_namespace
   269          target_label: namespace
   270        - action: replace
   271          source_labels:
   272          - __meta_kubernetes_pod_name
   273          target_label: pod_name
   274        scheme: https
   275        tls_config:
   276          ca_file: /etc/istio-certs/root-cert.pem
   277          cert_file: /etc/istio-certs/cert-chain.pem
   278          insecure_skip_verify: true
   279          key_file: /etc/istio-certs/key.pem
   280      - job_name: system-node-exporter
   281        kubernetes_sd_configs:
   282        - namespaces:
   283            names:
   284            - monitoring
   285          role: pod
   286        relabel_configs:
   287        - action: keep
   288          regex: node-exporter
   289          source_labels:
   290          - __meta_kubernetes_pod_label_app
   291        - action: replace
   292          regex: (.+)
   293          source_labels:
   294          - __meta_kubernetes_pod_annotation_prometheus_io_path
   295          target_label: __metrics_path__
   296        - action: replace
   297          regex: ([^:]+)(?::\d+)?;(\d+)
   298          replacement: $1:$2
   299          source_labels:
   300          - __address__
   301          - __meta_kubernetes_pod_annotation_prometheus_io_port
   302          target_label: __address__
   303        - action: labelmap
   304          regex: __meta_kubernetes_pod_label_(.+)
   305        - action: replace
   306          source_labels:
   307          - __meta_kubernetes_pod_name
   308          target_label: pod_name
   309        - action: labeldrop
   310          regex: (controller_revision_hash)
   311        - regex: .*/(.*)$
   312          replacement: $1
   313          source_labels:
   314          - name
   315          target_label: webapp
   316      - job_name: hello-world-binding_local_greet_helidon_hello-world-application
   317        kubernetes_sd_configs:
   318        - namespaces:
   319            names:
   320            - greet
   321          role: pod
   322        relabel_configs:
   323        - action: keep
   324          regex: true;hello-world-application
   325          source_labels:
   326          - __meta_kubernetes_pod_annotation_prometheus_io_scrape
   327          - __meta_kubernetes_pod_label_app
   328        - action: replace
   329          regex: (.+)
   330          source_labels:
   331          - __meta_kubernetes_pod_annotation_prometheus_io_path
   332          target_label: __metrics_path__
   333        - action: replace
   334          regex: ([^:]+)(?::\d+)?;(\d+)
   335          replacement: $1:$2
   336          source_labels:
   337          - __address__
   338          - __meta_kubernetes_pod_annotation_prometheus_io_port
   339          target_label: __address__
   340        - action: labelmap
   341          regex: __meta_kubernetes_pod_label_(.+)
   342        - action: replace
   343          source_labels:
   344          - __meta_kubernetes_pod_name
   345          target_label: pod_name
   346        - action: labeldrop
   347          regex: (controller_revision_hash)
   348        - regex: .*/(.*)$
   349          replacement: $1
   350          source_labels:
   351          - name
   352          target_label: webapp
   353      - basic_auth:
   354          password: fake-password
   355          username: fake-username
   356        job_name: bobs-books-binding_local_bobby_weblogic_bobbys-front-end
   357        kubernetes_sd_configs:
   358        - namespaces:
   359            names:
   360            - bobby
   361          role: pod
   362        relabel_configs:
   363        - action: keep
   364          regex: true;bobbys-front-end
   365          source_labels:
   366          - __meta_kubernetes_pod_annotation_prometheus_io_scrape
   367          - __meta_kubernetes_pod_label_weblogic_domainName
   368        - action: replace
   369          regex: (.+)
   370          source_labels:
   371          - __meta_kubernetes_pod_annotation_prometheus_io_path
   372          target_label: __metrics_path__
   373        - action: replace
   374          regex: ([^:]+)(?::\d+)?;(\d+)
   375          replacement: $1:$2
   376          source_labels:
   377          - __address__
   378          - __meta_kubernetes_pod_annotation_prometheus_io_port
   379          target_label: __address__
   380        - action: labelmap
   381          regex: __meta_kubernetes_pod_label_(.+)
   382        - action: replace
   383          source_labels:
   384          - __meta_kubernetes_pod_name
   385          target_label: pod_name
   386        - action: labeldrop
   387          regex: (controller_revision_hash)
   388        - regex: .*/(.*)$
   389          replacement: $1
   390          source_labels:
   391          - name
   392          target_label: webapp
   393      - basic_auth:
   394          password: fake-password
   395          username: fake-username
   396        job_name: bobs-books-binding_local_bob_weblogic_bobs-bookstore
   397        kubernetes_sd_configs:
   398        - namespaces:
   399            names:
   400            - bob
   401          role: pod
   402        relabel_configs:
   403        - action: keep
   404          regex: true;bobs-bookstore
   405          source_labels:
   406          - __meta_kubernetes_pod_annotation_prometheus_io_scrape
   407          - __meta_kubernetes_pod_label_weblogic_domainName
   408        - action: replace
   409          regex: (.+)
   410          source_labels:
   411          - __meta_kubernetes_pod_annotation_prometheus_io_path
   412          target_label: __metrics_path__
   413        - action: replace
   414          regex: ([^:]+)(?::\d+)?;(\d+)
   415          replacement: $1:$2
   416          source_labels:
   417          - __address__
   418          - __meta_kubernetes_pod_annotation_prometheus_io_port
   419          target_label: __address__
   420        - action: labelmap
   421          regex: __meta_kubernetes_pod_label_(.+)
   422        - action: replace
   423          source_labels:
   424          - __meta_kubernetes_pod_name
   425          target_label: pod_name
   426        - action: labeldrop
   427          regex: (controller_revision_hash)
   428        - regex: .*/(.*)$
   429          replacement: $1
   430          source_labels:
   431          - name
   432          target_label: webapp
   433      - job_name: bobs-books-binding_local_weblogic-operator
   434        kubernetes_sd_configs:
   435        - namespaces:
   436            names:
   437            - verrazzano-bobs-books-binding
   438          role: pod
   439        relabel_configs:
   440        - action: keep
   441          regex: weblogic-operator
   442          source_labels:
   443          - __meta_kubernetes_pod_label_app
   444        - action: replace
   445          regex: (.+)
   446          source_labels:
   447          - __meta_kubernetes_pod_annotation_prometheus_io_path
   448          target_label: __metrics_path__
   449        - action: replace
   450          regex: ([^:]+)(?::\d+)?;(\d+)
   451          replacement: $1:$2
   452          source_labels:
   453          - __address__
   454          - __meta_kubernetes_pod_annotation_prometheus_io_port
   455          target_label: __address__
   456        - action: labelmap
   457          regex: __meta_kubernetes_pod_label_(.+)
   458        - action: replace
   459          source_labels:
   460          - __meta_kubernetes_pod_name
   461          target_label: pod_name
   462        - action: labeldrop
   463          regex: (controller_revision_hash)
   464        - regex: .*/(.*)$
   465          replacement: $1
   466          source_labels:
   467          - name
   468          target_label: webapp
   469      - job_name: bobs-books-binding_local_bobby_coherence_bobbys-coherence
   470        kubernetes_sd_configs:
   471        - namespaces:
   472            names:
   473            - bobby
   474          role: pod
   475        relabel_configs:
   476        - action: keep
   477          regex: true;bobbys-coherence
   478          source_labels:
   479          - __meta_kubernetes_pod_annotation_prometheus_io_scrape
   480          - __meta_kubernetes_pod_label_coherenceCluster
   481        - action: replace
   482          regex: (.+)
   483          source_labels:
   484          - __meta_kubernetes_pod_annotation_prometheus_io_path
   485          target_label: __metrics_path__
   486        - action: replace
   487          regex: ([^:]+)(?::\d+)?;(\d+)
   488          replacement: $1:$2
   489          source_labels:
   490          - __address__
   491          - __meta_kubernetes_pod_annotation_prometheus_io_port
   492          target_label: __address__
   493        - action: labelmap
   494          regex: __meta_kubernetes_pod_label_(.+)
   495        - action: replace
   496          source_labels:
   497          - __meta_kubernetes_pod_name
   498          target_label: pod_name
   499        - action: labeldrop
   500          regex: (controller_revision_hash)
   501        - regex: .*/(.*)$
   502          replacement: $1
   503          source_labels:
   504          - name
   505          target_label: webapp
   506      - job_name: bobs-books-binding_local_robert_coherence_roberts-coherence
   507        kubernetes_sd_configs:
   508        - namespaces:
   509            names:
   510            - robert
   511          role: pod
   512        relabel_configs:
   513        - action: keep
   514          regex: true;roberts-coherence
   515          source_labels:
   516          - __meta_kubernetes_pod_annotation_prometheus_io_scrape
   517          - __meta_kubernetes_pod_label_coherenceCluster
   518        - action: replace
   519          regex: (.+)
   520          source_labels:
   521          - __meta_kubernetes_pod_annotation_prometheus_io_path
   522          target_label: __metrics_path__
   523        - action: replace
   524          regex: ([^:]+)(?::\d+)?;(\d+)
   525          replacement: $1:$2
   526          source_labels:
   527          - __address__
   528          - __meta_kubernetes_pod_annotation_prometheus_io_port
   529          target_label: __address__
   530        - action: labelmap
   531          regex: __meta_kubernetes_pod_label_(.+)
   532        - action: replace
   533          source_labels:
   534          - __meta_kubernetes_pod_name
   535          target_label: pod_name
   536        - action: labeldrop
   537          regex: (controller_revision_hash)
   538        - regex: .*/(.*)$
   539          replacement: $1
   540          source_labels:
   541          - name
   542          target_label: webapp
   543      - job_name: bobs-books-binding_local_bobby_coherence-operator
   544        kubernetes_sd_configs:
   545        - namespaces:
   546            names:
   547            - bobby
   548          role: pod
   549        relabel_configs:
   550        - action: keep
   551          regex: coherence-operator;(metrics|oper-metrics)
   552          source_labels:
   553          - __meta_kubernetes_pod_label_app
   554          - __meta_kubernetes_pod_container_port_name
   555        - action: replace
   556          regex: (.+)
   557          source_labels:
   558          - __meta_kubernetes_pod_annotation_prometheus_io_path
   559          target_label: __metrics_path__
   560        - action: replace
   561          regex: ([^:]+)(?::\d+)?;(\d+)
   562          replacement: $1:$2
   563          source_labels:
   564          - __address__
   565          - __meta_kubernetes_pod_annotation_prometheus_io_port
   566          target_label: __address__
   567        - action: labelmap
   568          regex: __meta_kubernetes_pod_label_(.+)
   569        - action: replace
   570          source_labels:
   571          - __meta_kubernetes_pod_name
   572          target_label: pod_name
   573        - action: labeldrop
   574          regex: (controller_revision_hash)
   575        - regex: .*/(.*)$
   576          replacement: $1
   577          source_labels:
   578          - name
   579          target_label: webapp
   580      - job_name: bobs-books-binding_local_robert_coherence-operator
   581        kubernetes_sd_configs:
   582        - namespaces:
   583            names:
   584            - robert
   585          role: pod
   586        relabel_configs:
   587        - action: keep
   588          regex: coherence-operator;(metrics|oper-metrics)
   589          source_labels:
   590          - __meta_kubernetes_pod_label_app
   591          - __meta_kubernetes_pod_container_port_name
   592        - action: replace
   593          regex: (.+)
   594          source_labels:
   595          - __meta_kubernetes_pod_annotation_prometheus_io_path
   596          target_label: __metrics_path__
   597        - action: replace
   598          regex: ([^:]+)(?::\d+)?;(\d+)
   599          replacement: $1:$2
   600          source_labels:
   601          - __address__
   602          - __meta_kubernetes_pod_annotation_prometheus_io_port
   603          target_label: __address__
   604        - action: labelmap
   605          regex: __meta_kubernetes_pod_label_(.+)
   606        - action: replace
   607          source_labels:
   608          - __meta_kubernetes_pod_name
   609          target_label: pod_name
   610        - action: labeldrop
   611          regex: (controller_revision_hash)
   612        - regex: .*/(.*)$
   613          replacement: $1
   614          source_labels:
   615          - name
   616          target_label: webapp
   617      - job_name: bobs-books-binding_local_bobby_helidon_bobbys-helidon-stock-application
   618        kubernetes_sd_configs:
   619        - namespaces:
   620            names:
   621            - bobby
   622          role: pod
   623        relabel_configs:
   624        - action: keep
   625          regex: true;bobbys-helidon-stock-application
   626          source_labels:
   627          - __meta_kubernetes_pod_annotation_prometheus_io_scrape
   628          - __meta_kubernetes_pod_label_app
   629        - action: replace
   630          regex: (.+)
   631          source_labels:
   632          - __meta_kubernetes_pod_annotation_prometheus_io_path
   633          target_label: __metrics_path__
   634        - action: replace
   635          regex: ([^:]+)(?::\d+)?;(\d+)
   636          replacement: $1:$2
   637          source_labels:
   638          - __address__
   639          - __meta_kubernetes_pod_annotation_prometheus_io_port
   640          target_label: __address__
   641        - action: labelmap
   642          regex: __meta_kubernetes_pod_label_(.+)
   643        - action: replace
   644          source_labels:
   645          - __meta_kubernetes_pod_name
   646          target_label: pod_name
   647        - action: labeldrop
   648          regex: (controller_revision_hash)
   649        - regex: .*/(.*)$
   650          replacement: $1
   651          source_labels:
   652          - name
   653          target_label: webapp
   654      - job_name: bobs-books-binding_local_robert_helidon_roberts-helidon-stock-application
   655        kubernetes_sd_configs:
   656        - namespaces:
   657            names:
   658            - robert
   659          role: pod
   660        relabel_configs:
   661        - action: keep
   662          regex: true;roberts-helidon-stock-application
   663          source_labels:
   664          - __meta_kubernetes_pod_annotation_prometheus_io_scrape
   665          - __meta_kubernetes_pod_label_app
   666        - action: replace
   667          regex: (.+)
   668          source_labels:
   669          - __meta_kubernetes_pod_annotation_prometheus_io_path
   670          target_label: __metrics_path__
   671        - action: replace
   672          regex: ([^:]+)(?::\d+)?;(\d+)
   673          replacement: $1:$2
   674          source_labels:
   675          - __address__
   676          - __meta_kubernetes_pod_annotation_prometheus_io_port
   677          target_label: __address__
   678        - action: labelmap
   679          regex: __meta_kubernetes_pod_label_(.+)
   680        - action: replace
   681          source_labels:
   682          - __meta_kubernetes_pod_name
   683          target_label: pod_name
   684        - action: labeldrop
   685          regex: (controller_revision_hash)
   686        - regex: .*/(.*)$
   687          replacement: $1
   688          source_labels:
   689          - name
   690          target_label: webapp
   691      - basic_auth:
   692          password: fake-password
   693          username: fake-username
   694        job_name: todo_default_todo_todo-wls
   695        kubernetes_sd_configs:
   696        - namespaces:
   697            names:
   698            - todo
   699          role: pod
   700        relabel_configs:
   701        - action: keep
   702          regex: true;todo;todo-wls
   703          source_labels:
   704          - __meta_kubernetes_pod_annotation_verrazzano_io_metricsEnabled
   705          - __meta_kubernetes_pod_label_app_oam_dev_name
   706          - __meta_kubernetes_pod_label_app_oam_dev_component
   707        - action: replace
   708          regex: (.+)
   709          source_labels:
   710          - __meta_kubernetes_pod_annotation_verrazzano_io_metricsPath
   711          target_label: __metrics_path__
   712        - action: replace
   713          regex: ([^:]+)(?::\d+)?;(\d+)
   714          replacement: $1:$2
   715          source_labels:
   716          - __address__
   717          - __meta_kubernetes_pod_annotation_verrazzano_io_metricsPort
   718          target_label: __address__
   719        - action: replace
   720          regex: (.*)
   721          replacement: $1
   722          source_labels:
   723          - __meta_kubernetes_namespace
   724          target_label: namespace
   725        - action: labelmap
   726          regex: __meta_kubernetes_pod_label_(.+)
   727        - action: replace
   728          source_labels:
   729          - __meta_kubernetes_pod_name
   730          target_label: pod_name
   731        - action: labeldrop
   732          regex: (controller_revision_hash)
   733        - action: replace
   734          regex: .*/(.*)$
   735          replacement: $1
   736          source_labels:
   737          - name
   738          target_label: webapp
   739      - job_name: test-oam-app-name_default_test-namespace_test-oam-comp-name
   740  kind: ConfigMap
   741  metadata:
   742    creationTimestamp: "2020-11-23T15:11:41Z"
   743    name: ##PROMETHEUS_NAME##
   744    namespace: ##PROMETHEUS_NAMESPACE##
   745    resourceVersion: "6798577"
   746    selfLink: /api/v1/namespaces/istio-system/configmaps/prometheus
   747    uid: c4ef404a-b409-42a2-94e8-f88c3008fda0