github.com/verrazzano/verrazzano@v1.7.0/pkg/metricsutils/testdata/fullPromConfig.yaml (about) 1 # Copyright (c) 2021, 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 scrape_configs: 5 - job_name: prometheus 6 scrape_interval: 20s 7 scrape_timeout: 15s 8 static_configs: 9 - targets: 10 - localhost:9090 11 - job_name: node-exporter 12 kubernetes_sd_configs: 13 - role: endpoints 14 relabel_configs: 15 - action: keep 16 regex: node-exporter 17 source_labels: 18 - __meta_kubernetes_endpoints_name 19 scrape_interval: 20s 20 scrape_timeout: 15s 21 - bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token 22 job_name: cadvisor 23 kubernetes_sd_configs: 24 - role: node 25 relabel_configs: 26 - action: labelmap 27 regex: __meta_kubernetes_node_label_(.+) 28 - replacement: kubernetes.default.svc:443 29 target_label: __address__ 30 - regex: (.+) 31 replacement: /api/v1/nodes/$1/proxy/metrics/cadvisor 32 source_labels: 33 - __meta_kubernetes_node_name 34 target_label: __metrics_path__ 35 scheme: https 36 scrape_interval: 20s 37 scrape_timeout: 15s 38 tls_config: 39 ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt 40 insecure_skip_verify: true