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

     1  global:
     2    scrape_interval: 5s
     3    external_labels:
     4      scraped_by: prometheus
     5  
     6  scrape_configs:
     7    - job_name: cortex-1
     8      static_configs:
     9        - targets: ['localhost:8001']
    10          labels:
    11            container: 'cortex-1'
    12    - job_name: cortex-2
    13      static_configs:
    14        - targets: ['localhost:8002']
    15          labels:
    16            container: 'cortex-2'
    17  
    18  remote_write:
    19    - url: http://localhost:8001/api/v1/push