Hello, World!

This commit is contained in:
2026-01-03 22:54:18 +00:00
parent 6c55b90a2d
commit b0e57f71f4
12 changed files with 608 additions and 0 deletions

View 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']

View 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