gitee.com/woood2/luca@v1.0.4/deployments/docker/prometheus-example.yml (about)

     1  global:
     2    scrape_interval:     15s # By default, scrape targets every 15 seconds.
     3    external_labels:
     4      monitor: 'luca-monitor'
     5  
     6  scrape_configs:
     7    - job_name: 'prometheus'
     8      scrape_interval: 5s
     9      static_configs:
    10        - targets: ['localhost:9090']
    11          labels:
    12            group: 'local'
    13  
    14    - job_name: 'luca-backend'
    15      scrape_interval: 5s
    16      static_configs:
    17        - targets: ['{ip}:8082']
    18          labels:
    19            group: 'luca'
    20  
    21    - job_name: 'luca-micro'
    22      scrape_interval: 5s
    23      static_configs:
    24        - targets: ['{ip}:6061']
    25          labels:
    26            group: 'luca'
    27  
    28    - job_name: 'luca-consumer'
    29      scrape_interval: 5s
    30      static_configs:
    31        - targets: ['{ip}:6063']
    32          labels:
    33            group: 'luca'