Added prometheus with scrape options
This commit is contained in:
0
monitoring/compose.yml
Normal file
0
monitoring/compose.yml
Normal file
0
monitoring/grafana/compose.yml
Normal file
0
monitoring/grafana/compose.yml
Normal file
0
monitoring/prometheus/.gitignore
vendored
Normal file
0
monitoring/prometheus/.gitignore
vendored
Normal file
7
monitoring/prometheus/compose.yml
Normal file
7
monitoring/prometheus/compose.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus
|
||||
volumes:
|
||||
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
ports:
|
||||
- 9090:9090
|
19
monitoring/prometheus/prometheus.yml
Normal file
19
monitoring/prometheus/prometheus.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
global:
|
||||
scrape_interval: 10s
|
||||
|
||||
scrape_configs:
|
||||
# This instance scraper
|
||||
- job_name: 'prometheus'
|
||||
static_configs:
|
||||
- targets:
|
||||
- prometheus:9090
|
||||
|
||||
# Server Scrapers
|
||||
- job_name: 'mc-server'
|
||||
static_configs:
|
||||
- targets: ['localhost:9100']
|
||||
labels:
|
||||
instance: 'Fallback'
|
||||
- targets: ['100.80.35.55:9100']
|
||||
labels:
|
||||
instance: 'Main'
|
Reference in New Issue
Block a user