summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/templates/jobs/standalone-kubelet.j2
blob: 77e7aeedeeeeb4db322e095faa5f26b66bbc7e17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  - job_name: '{{ job }}'
    metrics_path: /{{ job }}
    scheme: https
    tls_config:
      ca_file: /etc/ssl/prometheus/ca-crt.pem
      cert_file: /etc/ssl/prometheus/server/scrape-crt.pem
      key_file: /etc/ssl/prometheus/server/scrape-key.pem
    file_sd_configs:
    - files:
      - "/etc/prometheus/targets/{{ job }}/*.yml"
    metric_relabel_configs:
    - source_labels: [ "__name__" ]
      regex: "(kubernetes_feature_enabled|apiserver_.*)"
      action: drop

  - job_name: '{{ job }}/resource'
    metrics_path: /{{ job }}/resource
    scheme: https
    tls_config:
      ca_file: /etc/ssl/prometheus/ca-crt.pem
      cert_file: /etc/ssl/prometheus/server/scrape-crt.pem
      key_file: /etc/ssl/prometheus/server/scrape-key.pem
    file_sd_configs:
    - files:
      - "/etc/prometheus/targets/{{ job }}/*.yml"

  - job_name: '{{ job }}/probes'
    metrics_path: /{{ job }}/probes
    scheme: https
    tls_config:
      ca_file: /etc/ssl/prometheus/ca-crt.pem
      cert_file: /etc/ssl/prometheus/server/scrape-crt.pem
      key_file: /etc/ssl/prometheus/server/scrape-key.pem
    file_sd_configs:
    - files:
      - "/etc/prometheus/targets/{{ job }}/*.yml"