Nrejve

yaml3

Jan 5th, 2021
595
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4.   name: prometheus-server-conf
  5.   labels:
  6.     name: prometheus-server-conf
  7.   namespace: monitoring
  8. data:
  9.   prometheus.yml: |-
  10.     global:
  11.       scrape_interval: 5s
  12.       evaluation_interval: 5s
  13.  
  14.     scrape_configs:
  15.       - job_name: 'kubernetes-apiservers'
  16.  
  17.         kubernetes_sd_configs:
  18.         - role: endpoints
  19.         scheme: https
  20.  
  21.         tls_config:
  22.           ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
  23.         bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
  24.  
  25.         relabel_configs:
  26.         - source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name]
  27.           action: keep
  28.           regex: default;kubernetes;https
  29.  
  30.       - job_name: 'kubernetes-cadvisor'
  31.  
  32.         scheme: https
  33.  
  34.         tls_config:
  35.           ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
  36.         bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
  37.  
  38.         kubernetes_sd_configs:
  39.         - role: node
  40.  
  41.         relabel_configs:
  42.         - action: labelmap
  43.           regex: __meta_kubernetes_node_label_(.+)
  44.         - target_label: __address__
  45.           replacement: kubernetes.default.svc:443
  46.         - source_labels: [__meta_kubernetes_node_name]
  47.           regex: (.+)
  48.           target_label: __metrics_path__
  49.           replacement: /api/v1/nodes/${1}/proxy/metrics/cadvisor
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×