github.com/muhammadn/cortex@v1.9.1-0.20220510110439-46bb7000d03d/tools/query-audit/example-config.yaml (about)

     1  control:
     2    host: http://localhost:8080/prometheus
     3    headers:
     4      "X-Scope-OrgID": 1234
     5  
     6  test:
     7    host: http://localhost:8081/prometheus
     8    headers:
     9      "X-Scope-OrgID": 1234
    10  
    11  queries:
    12    - query: 'sum(rate(container_cpu_usage_seconds_total[5m]))'
    13      start: 2019-11-25T00:00:00Z
    14      end: 2019-11-28T00:00:00Z
    15      step_size: 15m
    16    - query: 'sum(rate(container_cpu_usage_seconds_total[5m])) by (container_name)'
    17      start: 2019-11-25T00:00:00Z
    18      end: 2019-11-28T00:00:00Z
    19      step_size: 15m
    20    - query: 'sum(rate(container_cpu_usage_seconds_total[5m])) without (container_name)'
    21      start: 2019-11-25T00:00:00Z
    22      end: 2019-11-26T00:00:00Z
    23      step_size: 15m
    24    - query: 'histogram_quantile(0.9, sum(rate(cortex_cache_value_size_bytes_bucket[5m])) by (le, job))'
    25      start: 2019-11-25T00:00:00Z
    26      end: 2019-11-25T06:00:00Z
    27      step_size: 15m
    28      # two shardable legs
    29    - query: 'sum without (instance, job) (rate(cortex_query_frontend_queue_length[5m])) or sum by (job) (rate(cortex_query_frontend_queue_length[5m]))'
    30      start: 2019-11-25T00:00:00Z
    31      end: 2019-11-25T06:00:00Z
    32      step_size: 15m
    33      # one shardable leg
    34    - query: 'sum without (instance, job) (rate(cortex_cache_request_duration_seconds_count[5m])) or rate(cortex_cache_request_duration_seconds_count[5m])'
    35      start: 2019-11-25T00:00:00Z
    36      end: 2019-11-25T06:00:00Z
    37      step_size: 15m