Setting up Prometheus to collect Caddy metrics
Prometheus and Caddy-metrics

This is a simple example of how to setup Prometheus to collect Caddy metrics.
wget https://github.com/prometheus/prometheus/releases/download/v2.37.0/prometheus-2.37.0.linux-amd64.tar.gz
tar zxvf prometheus-2.37.0.linux-amd64.tar.gz
cd prometheus-2.37.0.linux-amd64
nano prometheus.yaml
# prometheus.yaml
global:
scrape_interval: 15s # default is 1 minute
scrape_configs:
- job_name: caddy
static_configs:
- targets: ['localhost:2019']
./prometheus --config.file=prometheus.yaml --web.listen-address=:8080