Skip to content

Commit

Permalink
add docker-compose start prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
yunlzheng committed Jan 11, 2018
1 parent 9fbcd75 commit 043016b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '2'

services:
prometheus:
image: quay.io/prometheus/prometheus
ports:
- 9090:9090
volumes:
- ./prometheus:/etc/prometheus
node_exporter:
image: quay.io/prometheus/node-exporter
ports:
- 9100:9100

25 changes: 25 additions & 0 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
global:
scrape_interval: 10s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- static_configs:
- targets: []
scheme: http
timeout: 10s
scrape_configs:
- job_name: prometheus
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- localhost:9090
- job_name: node
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- node_exporter:9100

0 comments on commit 043016b

Please sign in to comment.