replicaCount: 1
# ref: kubernetes.io/docs/concepts/workloads/controllers/deployment/
deployment:
  enabled: true
  # ref: kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
  strategy: {}
  # rollingUpdate:
  #  maxSurge: 25%
  #  maxUnavailable: 25%
  # type: RollingUpdate
image:
  repository: quay.io/jacksontj/promxy
  tag: "v0.0.92" # rewrites Chart.AppVersion
  pullPolicy: IfNotPresent
podDisruptionBudget:
  enabled: false
  # minAvailable: 1
  # maxUnavailable: 1
  labels: {}
serviceAccount:
  # Specifies whether a service account should be created
  create: true
  # Annotations to add to the service account
  annotations: {}
  # The name of the service account to use.
  # If not set and create is true, a name is generated using the fullname template
  name:
hpa:
  enabled: false
verticalAutoscaler:
  enabled: false
  # updateMode: "Auto"
  # containerPolicies:
  # - containerName: 'promxy'
  #   minAllowed:
  #     cpu: "250m"
  #     memory: "100Mi"
  #   maxAllowed:
  #     cpu: "2000m"
  #     memory: "2048Mi"
  # - containerName: "promxy-server-configmap-reload"
  #   mode: "Off"
service:
  type: ClusterIP
  enabled: true
  servicePort: 8082
  annotations: {}
  extraLabels: {}
  clusterIP: ""
  externalIPs: []
  loadBalancerIP: ""
  loadBalancerSourceRanges: []
ingress:
  enabled: false
  ingressClassName: nginx
  annotations: {}
  extraLabels: {}
  path: /
  pathType: Prefix
  hosts:
    - example.com
  tls: []
resources:
  requests:
    cpu: 500m
    memory: 1Gi
  limits:
    cpu: "2"
    memory: 4Gi
extraArgs:
  log-level: "info"
# use existing configmap if specified
# otherwise .config values will be used
configMap: ""
config:
  global:
    evaluation_interval: 5s
    external_labels:
      source: promxy
  # remote_write configuration is used by promxy as its local Appender, meaning all
  # metrics promxy would "write" (not export) would be sent to this. Examples
  # of this include: recording rules, metrics on alerting rules, etc.
  remote_write:
    - url: http://localhost:8083/receive
  ##
  ### Promxy configuration
  ##
  promxy:
    server_groups:
      # AWS regions
      - static_configs:
          - targets:
              - "www.ds.ap-northeast-1.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-ap-northeast-1
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        query_params:
          nocache: 1
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.ap-northeast-2.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-ap-northeast-2
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.ap-southeast-1.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-ap-southeast-1
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.ap-southeast-3.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-ap-southeast-3
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.ap-south-1.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-ap-south-1
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.ap-east-1.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-ap-east-1
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.us-east-1.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-us-east-1
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.us-west-2.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-us-west-2
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.eu-central-1.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-eu-central-1
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.eu-west-1.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-eu-west-1
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.sa-east-1.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-sa-east-1
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      # GCP regions
      - static_configs:
          - targets:
              - "www.ds.asia-east1.gcp.observability.tidbcloud.com"
        labels:
          k8s_cluster: gcp-asia-east1
          provider: gcp
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.asia-northeast1.gcp.observability.tidbcloud.com"
        labels:
          k8s_cluster: gcp-asia-northeast1
          provider: gcp
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.asia-northeast2.gcp.observability.tidbcloud.com"
        labels:
          k8s_cluster: gcp-asia-northeast2
          provider: gcp
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.asia-southeast1.gcp.observability.tidbcloud.com"
        labels:
          k8s_cluster: gcp-asia-southeast1
          provider: gcp
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.us-central1.gcp.observability.tidbcloud.com"
        labels:
          k8s_cluster: gcp-us-central1
          provider: gcp
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.us-east4.gcp.observability.tidbcloud.com"
        labels:
          k8s_cluster: gcp-us-east4
          provider: gcp
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.us-west1.gcp.observability.tidbcloud.com"
        labels:
          k8s_cluster: gcp-us-west1
          provider: gcp
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      # Azure regions
      - static_configs:
          - targets:
              - "www.ds.japaneast.azure.observability.tidbcloud.com"
        labels:
          k8s_cluster: azure-japaneast
          provider: azure
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      # Alicloud regions
      - static_configs:
          - targets:
              - "www.ds.ap-southeast-1.alicloud.observability.tidbcloud.com"
        labels:
          k8s_cluster: alicloud-ap-southeast-1
          provider: alicloud
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.ap-southeast-5.alicloud.observability.tidbcloud.com"
        labels:
          k8s_cluster: alicloud-ap-southeast-5
          provider: alicloud
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.ap-northeast-1.alicloud.observability.tidbcloud.com"
        labels:
          k8s_cluster: alicloud-ap-northeast-1
          provider: alicloud
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.na-south-1.alicloud.observability.tidbcloud.com"
        labels:
          k8s_cluster: alicloud-na-south-1
          provider: alicloud
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      # Base infrastructure
      - static_configs:
          - targets:
              - "www.ds.us-west-2.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: base
          provider: base
        anti_affinity: 10s
        path_prefix: /internal/metrics/90c5d4fa-ba99-4c40-8b5f-041f6dd28501/
        scheme: https
        http_client:
          dial_timeout: 5s
          tls_config:
            insecure_skip_verify: true
        ignore_error: true
      - static_configs:
          - targets:
              - "www.ds.ap-southeast-1-premium.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-ap-southeast-1-premium
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.us-west-2-byoc-0905.aws.o11y-law.cluster.pingcap.com"
        labels:
          k8s_cluster: aws-us-west-2-byoc-0905
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: true
      - static_configs:
          - targets:
              - "www.ds.us-west-2-byoc-0926.aws.o11y.byoc-0924.pingcap.net"
        labels:
          k8s_cluster: aws-us-west-2-byoc-0926
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: true
      - static_configs:
          - targets:
              - "www.ds.ap-southeast-7.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-ap-southeast-7
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.us-west-2-premium.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-us-west-2-premium
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.ap-northeast-1-premium.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-ap-northeast-1-premium
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.us-west-2-byoc-0929.aws.o11y.byoc-0929.pingcap.net"
        labels:
          k8s_cluster: aws-us-west-2-byoc-0929
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: true
      - static_configs:
          - targets:
              - "www.ds.eu-central-1-byoc-1104.aws.o11y.byoc-0929.pingcap.net"
        labels:
          k8s_cluster: aws-eu-central-1-byoc-1104
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: true
      - static_configs:
          - targets:
              - "www.ds.ap-southeast-2-ng.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-ap-southeast-2-ng
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.us-west-2-staging.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-us-west-2-staging
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.us-east-1-premium.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-us-east-1-premium
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "kong-kong-proxy.kong.svc.cluster.local"
        labels:
          k8s_cluster: aws-us-east-1-byoc-poc
          provider: aws
        anti_affinity: 10s
        path_prefix: /internal/prom/self-monitoring/
        scheme: http
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
          headers:
            X-Region-Id: aws-us-east-1
            X-Biz-Type: byoc
            X-Org-Id: 1372813089209313726
        ignore_error: true
      - static_configs:
          - targets:
              - "www.ds.us-east-1-serverless.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-us-east-1-serverless
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "www.ds.ap-east-1-premium.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-ap-east-1-premium
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "kong-kong-proxy.kong.svc.cluster.local"
        labels:
          k8s_cluster: aws-us-east-1-na-test
          provider: aws
        anti_affinity: 10s
        path_prefix: /internal/prom/self-monitoring/
        scheme: http
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
          headers:
            X-Region-Id: aws-us-east-1
            X-Biz-Type: byoc
            X-Org-Id: 1372813089208281461
        ignore_error: true
      - static_configs:
          - targets:
              - "www.ds.mx-central-1.aws.observability.tidbcloud.com"
        labels:
          k8s_cluster: aws-mx-central-1
          provider: aws
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "kong-kong-proxy.kong.svc.cluster.local"
        labels:
          k8s_cluster: aws-us-west-2-na-test
          provider: aws
        anti_affinity: 10s
        path_prefix: /internal/prom/self-monitoring/
        scheme: http
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
          headers:
            X-Region-Id: aws-us-west-2
            X-Biz-Type: byoc
            X-Org-Id: 1372813089208281461
        ignore_error: true
      - static_configs:
          - targets:
              - "kong-kong-proxy.kong.svc.cluster.local"
        labels:
          k8s_cluster: aws-us-west-2-byoc-fnu
          provider: aws
        anti_affinity: 10s
        path_prefix: /internal/prom/self-monitoring/
        scheme: http
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
          headers:
            X-Region-Id: aws-us-west-2
            X-Biz-Type: byoc
            X-Org-Id: 1372813089192471291
        ignore_error: true
      - static_configs:
          - targets:
              - "kong-kong-proxy.kong.svc.cluster.local"
        labels:
          k8s_cluster: aws-byoc-usw2-mithra
          provider: aws
        anti_affinity: 10s
        path_prefix: /internal/prom/self-monitoring/
        scheme: http
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
          headers:
            X-Region-Id: aws-us-west-2
            X-Biz-Type: byoc
            X-Org-Id: 1372813089209301084
        ignore_error: true
      - static_configs:
          - targets:
              - "kong-kong-proxy.kong.svc.cluster.local"
        labels:
          k8s_cluster: aws-us-east-1-byoc-se
          provider: aws
        anti_affinity: 10s
        path_prefix: /internal/prom/self-monitoring/
        scheme: http
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
          headers:
            X-Region-Id: aws-us-east-1
            X-Biz-Type: byoc
            X-Org-Id: 1372813089200871284
        ignore_error: true
      - static_configs:
          - targets:
              - "kong-kong-proxy.kong.svc.cluster.local"
        labels:
          k8s_cluster: aws-us-west-2-byoc-se
          provider: aws
        anti_affinity: 10s
        path_prefix: /internal/prom/self-monitoring/
        scheme: http
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
          headers:
            X-Region-Id: aws-us-west-2
            X-Biz-Type: byoc
            X-Org-Id: 1372813089200871284
        ignore_error: true
      - static_configs:
          - targets:
              - "www.ds.asia-south1.gcp.observability.tidbcloud.com"
        labels:
          k8s_cluster: gcp-asia-south1
          provider: gcp
        anti_affinity: 10s
        path_prefix: /prom/self-monitoring/
        scheme: https
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
        ignore_error: false
      - static_configs:
          - targets:
              - "kong-kong-proxy.kong.svc.cluster.local"
        labels:
          k8s_cluster: aws-use1-byoc-jpg-test
          provider: aws
        anti_affinity: 10s
        path_prefix: /internal/prom/self-monitoring/
        scheme: http
        http_client:
          dial_timeout: 2s
          tls_config:
            insecure_skip_verify: true
          headers:
            X-Region-Id: aws-us-east-1
            X-Biz-Type: byoc
            X-Org-Id: 1372813089194211283
        ignore_error: true
