github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/monitoring/prometheus.yml (about)

     1  # Prometheus configuration for cockroach clusters.
     2  # Requires prometheus 2.X
     3  #
     4  # Run with:
     5  # $ prometheus -config.file=prometheus.yml
     6  global:
     7    scrape_interval: 10s
     8    evaluation_interval: 10s
     9  
    10  rule_files:
    11  - "rules/alerts.rules.yml"
    12  - "rules/aggregation.rules.yml"
    13  
    14  # Alert manager running on the same host:
    15  alerting:
    16    alertmanagers:
    17    - path_prefix: "/alertmanager/"
    18      static_configs:
    19      - targets:
    20        - localhost:9093
    21  
    22  scrape_configs:
    23    - job_name: 'cockroachdb'
    24      metrics_path: '/_status/vars'
    25      # Insecure mode:
    26      scheme: 'http'
    27      # Secure mode:
    28      # scheme: 'https'
    29      tls_config:
    30        insecure_skip_verify: true
    31  
    32      static_configs:
    33      - targets: ['localhost:8080']
    34        labels:
    35          cluster: 'my-cockroachdb-cluster'