/
prometheus.yml
23 lines (21 loc) · 978 Bytes
/
prometheus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
global:
scrape_interval: 10s # By default, scrape targets every 5 seconds.
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
# external_labels:
# monitor: 'nats-openrmf-server'
# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'peopleapi-read-prometheus'
# metrics_path defaults to '/metrics'
static_configs:
# replace the IP with your local IP for development
# localhost is not it, as that is w/in the container :)
- targets: ['peopleapi:8080']
- job_name: 'locationsapi-read-prometheus'
# metrics_path defaults to '/metrics'
static_configs:
# replace the IP with your local IP for development
# localhost is not it, as that is w/in the container :)
- targets: ['locationsapi:8080']