apiVersion: v1
kind: ConfigMap
metadata:
  name: prometheus-test
  namespace: prombench-{{ .PR_NUMBER }}
data:
  prometheus.yml: |
    global:
      scrape_interval: 5s

    scrape_configs:
    - job_name: kubelets
      scheme: https
      tls_config:
        ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
        insecure_skip_verify: true
      bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
      kubernetes_sd_configs:
      - role: node
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_node_label_cloud_google_com_gke_nodepool]
        regex: prometheus-{{ .PR_NUMBER }}|nodes-{{ .PR_NUMBER }}
      - action: labelmap
        regex: __meta_kubernetes_node_label_(.+)
      - target_label: __address__
        replacement: kubernetes.default.svc:443
      - source_labels: [__meta_kubernetes_node_name]
        regex: (.+)
        target_label: __metrics_path__
        replacement: /api/v1/nodes/${1}/proxy/metrics

    - job_name: node-exporters
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: node-exporter
      - action: replace
        source_labels: [__meta_kubernetes_service_name]
        target_label: job
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName

    - job_name: fake-webservers-1
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-2
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-3
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-4
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-5
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-6
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-7
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-8
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-9
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-10
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-11
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-12
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-13
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-14
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-15
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-16
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-17
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-18
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-19
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-20
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-21
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-22
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-23
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-24
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-25
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-26
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-27
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-28
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-29
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-30
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-31
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-32
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-33
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-34
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-35
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-36
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-37
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-38
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-39
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-40
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-41
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-42
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-43
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-44
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-45
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-46
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-47
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-48
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-49
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
    - job_name: fake-webservers-50
      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
            - prombench-{{ .PR_NUMBER }}
      relabel_configs:
      - action: keep
        source_labels: [__meta_kubernetes_service_label_app]
        regex: fake-webserver
      - action: replace
        source_labels: [__meta_kubernetes_pod_node_name]
        target_label: nodeName
