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