UrlsController/prometheus/prometheus.yml

19 lines
726 B
YAML
Raw Normal View History

global:
scrape_interval: 15s # Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
- job_name: 'prometheus' # Job to scrape Prometheus metrics
scrape_interval: 15s
scrape_timeout: 10s
static_configs:
- targets: ['localhost:9090']
- job_name: 'spring-actuator'
metrics_path: '/api/actuator/prometheus' # Job to scrape application metrics
scrape_interval: 15s
scrape_timeout: 10s
static_configs: # TODO - Find a way to automatically apply the publicIP of the host machine it is running on.
- targets: [ '<SERVER_IP>:1880' ]