Skip to content
Snippets Groups Projects
Commit 186153bc authored by ziggy's avatar ziggy
Browse files

add prometheus to docker-compose

* include basic configuration file
parent 5feeb8b4
Branches monitoring
No related tags found
No related merge requests found
......@@ -78,3 +78,12 @@ services:
- proxy-tier
depends_on:
- proxy
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- 127.0.0.1:9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
# my global config
global:
scrape_interval: 15s
evaluation_interval: 15s
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['localhost:9090']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment