github.com/muhammadn/cortex@v1.9.1-0.20220510110439-46bb7000d03d/development/tsdb-blocks-storage-swift-single-binary/config/grafana-agent.yaml (about)

     1  server:
     2    log_level: debug
     3    http_listen_port: 9091
     4  
     5  prometheus:
     6    global:
     7      scrape_interval: 5s
     8      external_labels:
     9        scraped_by: grafana-agent
    10    configs:
    11      - name: local
    12        host_filter: false
    13        scrape_configs:
    14          - job_name: cortex-1
    15            static_configs:
    16              - targets: ['localhost:8001']
    17                labels:
    18                  container: 'cortex-1'
    19          - job_name: cortex-2
    20            static_configs:
    21              - targets: ['localhost:8002']
    22                labels:
    23                  container: 'cortex-2'
    24  
    25        remote_write:
    26          - url: http://localhost:8001/api/v1/push