- 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