diff --git "a/\bconfig/prometheus/prometheus-config.yml" "b/\bconfig/prometheus/prometheus-config.yml" new file mode 100644 index 0000000..ce1b0dd --- /dev/null +++ "b/\bconfig/prometheus/prometheus-config.yml" @@ -0,0 +1,12 @@ +global: + scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. + evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. + # scrape_timeout is set to the global default (10s). + +# scrape_configs: +# - job_name: 'grafana-agent' +# scrape_interval: 10s +# static_configs: +# # - targets: ['localhost:9464'] +# # - targets: ['agent:12345'] +# - targets: ['localhost:12345'] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 574a174..6d62dea 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -104,7 +104,8 @@ services: ports: - "9090:9090" volumes: - - "$PWD/config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml" + - "$PWD/config/prometheus/prometheus-config.yml:/etc/prometheus/prometheus.yml" + command: - '--config.file=/etc/prometheus/prometheus.yml' - '--storage.tsdb.path=/prometheus'