Hello, World!
This commit is contained in:
15
04-prometheus/config/prometheus.yaml
Normal file
15
04-prometheus/config/prometheus.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
scrape_configs:
|
||||
- job_name: caddy
|
||||
static_configs:
|
||||
- targets: ['caddy:2019']
|
||||
- job_name: prometheus
|
||||
static_configs:
|
||||
- targets: ["localhost:9090"]
|
||||
- job_name: docker
|
||||
static_configs:
|
||||
- targets: ["host.docker.internal:9323"]
|
||||
- job_name: host
|
||||
static_configs:
|
||||
- targets: ['host.docker.internal:9100']
|
||||
14
04-prometheus/docker-compose.yaml
Normal file
14
04-prometheus/docker-compose.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
container_name: prometheus
|
||||
networks:
|
||||
nw-caddy:
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
volumes:
|
||||
- ./config:/etc/prometheus
|
||||
command:
|
||||
- '--config.file=/etc/prometheus/prometheus.yaml'
|
||||
- '--storage.tsdb.path=/prometheus'
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user