Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,29 @@ services:
# Persistent SQLite database.
- pulse-data:/app/data

prometheus:
image: prom/prometheus:v3.0.1
container_name: prometheus
restart: unless-stopped

command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"

ports:
- "9090:9090"

volumes:
# Prometheus scrape configuration.
# SELinux relabeling for Fedora/RHEL hosts.
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro,z

# Persistent Prometheus TSDB storage.
- prometheus-data:/prometheus

depends_on:
- pulse

volumes:
pulse-data:
prometheus-data:
9 changes: 9 additions & 0 deletions prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
global:
scrape_interval: 15s
scrape_timeout: 10s

scrape_configs:
- job_name: "pulse"
metrics_path: "/metrics"
static_configs:
- targets: ["pulse:8080"]
Loading