add: prometheus

This commit is contained in:
Schneider Roland
2024-10-25 16:13:42 +02:00
parent 4abd64dbc9
commit 27d74362d3
4 changed files with 64 additions and 0 deletions

View 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:

View File

@@ -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