apiVersion: v1 kind: ConfigMap metadata: name: prometheus-config namespace: kube-public data: prometheus.yml: |- global: scrape_interval: 30s scrape_timeout: 30s evaluation_interval: 1m alerting: alertmanagers: - follow_redirects: true scheme: http timeout: 10s api_version: v2 static_configs: - targets: - alertmanager:9093 rule_files: - /etc/rules/*.yml scrape_configs: - job_name: prometheus-uenpay honor_timestamps: true scrape_interval: 30s scrape_timeout: 30s metrics_path: /metrics scheme: http follow_redirects: true static_configs: - targets: - prometheus:9090 - job_name: pushgateway-uenpay honor_labels: true honor_timestamps: true scrape_interval: 30s scrape_timeout: 30s metrics_path: /metrics scheme: http follow_redirects: true static_configs: - targets: - pushgateway:9091 - job_name: 'federate-prometheus-crh' scrape_interval: 15s honor_labels: true metrics_path: '/federate' params: 'match[]': - '{job=~".*"}' - '{__name__=~"job:.*"}' static_configs: - targets: - '10.10.45.45:19090' - job_name: 'federate-prometheus-d0-dev' scrape_interval: 15s honor_labels: true metrics_path: '/federate' params: 'match[]': - '{job=~".*"}' - '{__name__=~"job:.*"}' static_configs: - targets: - 'prometheus-d0-dev.uenpay.com' - job_name: 'federate-prometheus-d0-test' scrape_interval: 15s honor_labels: true metrics_path: '/federate' params: 'match[]': - '{job=~".*"}' - '{__name__=~"job:.*"}' static_configs: - targets: - 'prometheus-d0-test.uenpay.com' - job_name: 'federate-prometheus-d2-uat' scrape_interval: 15s honor_labels: true metrics_path: '/federate' params: 'match[]': - '{job=~".*"}' - '{__name__=~"job:.*"}' static_configs: - targets: - 'prometheus-d2-uat.uenpay.com' - job_name: 'federate-prometheus-d3-uat' scrape_interval: 15s honor_labels: true metrics_path: '/federate' params: 'match[]': - '{job=~".*"}' - '{__name__=~"job:.*"}' static_configs: - targets: - 'prometheus-d3-uat.5ubp.com' - job_name: 'federate-prometheus-d3-prod' scrape_interval: 15s honor_labels: true metrics_path: '/federate' params: 'match[]': - '{job=~".*"}' - '{__name__=~"job:.*"}' static_configs: - targets: - 'prometheus-d3-prod.5ubp.com' - job_name: 'federate-prometheus-d1-prod' scrape_interval: 15s honor_labels: true metrics_path: '/federate' params: 'match[]': - '{job=~".*"}' - '{__name__=~"job:.*"}' static_configs: - targets: - 'prometheus-d1-prod.uenpay.com' - job_name: 'federate-prometheus-db' scrape_interval: 15s honor_labels: true metrics_path: '/federate' params: 'match[]': - '{job=~".*"}' - '{__name__=~"job:.*"}' static_configs: - targets: - '10.10.21.88:9090'