forked from lsmyrnaios/UrlsController
19 lines
740 B
YAML
19 lines
740 B
YAML
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 - Check if there is a way to automatically apply the publicIP of the host machine it is running on.
|
|
- targets: [ '<SERVER_IP>:1880' ]
|