add: prometheus
This commit is contained in:
13
prometheus/docker-compose/prometheus/docker-compose.yaml
Normal file
13
prometheus/docker-compose/prometheus/docker-compose.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus
|
||||
command:
|
||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||
ports:
|
||||
- 4117:9090
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./prometheus-config:/etc/prometheus
|
||||
- prom_data:/prometheus
|
||||
volumes:
|
||||
prom_data:
|
||||
@@ -0,0 +1,24 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
scrape_timeout: 10s
|
||||
evaluation_interval: 15s
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- static_configs:
|
||||
- targets: []
|
||||
scheme: http
|
||||
timeout: 10s
|
||||
api_version: v1
|
||||
scrape_configs:
|
||||
- job_name: prometheus
|
||||
honor_timestamps: true
|
||||
scrape_interval: 15s
|
||||
scrape_timeout: 10s
|
||||
metrics_path: /metrics
|
||||
scheme: http
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost:9090
|
||||
# - job_name: elzim # Change to whatever you like
|
||||
# static_configs:
|
||||
# - targets: ['192.168.2.66:9100'] #Change this to your server's IP
|
||||
Reference in New Issue
Block a user