apiVersion: v1
kind: ConfigMap
metadata:
  name: prometheus-config
  namespace: monitoring
data:
  prometheus.yml: |
    # my global config
    global:
      scrape_interval:     30s
      evaluation_interval: 30s
      # scrape_timeout is set to the global default (10s).

    # Alertmanager configuration
    alerting:
      alertmanagers:
      - static_configs:
        - targets:
          # - alertmanager:9093

    # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
    rule_files:
      # - "first_rules.yml"
      # - "second_rules.yml"

    # A scrape configuration containing exactly one endpoint to scrape:
    # Here it's Prometheus itself.
    scrape_configs:
      - job_name: 'purestorage-fb'
        metrics_path: /metrics/array
        authorization:
          credentials: T-2b74f9eb-a35f-40d9-a6a6-33c13775a53c
        params:
          endpoint: ['10.11.112.6']
        static_configs:
        - targets:
          - pure-fb-exporter.monitoring.svc:9491
          labels:
            location: uk
            site: London
            instance: fb-prod-01
