fix(infra): move Caddy metrics to global option
Caddy 2.9 deprecated the nested `servers { metrics }` form; every
deploy logs a deprecation warning. The global `metrics` option is the
replacement and emits the same Prometheus metrics on the admin
endpoint, so the existing scrape config is unaffected.
Validated with `caddy validate` against the caddy:2 image — config
valid, no deprecation warnings.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a4807aab1a
commit
9ed6b7dd1d
1 changed files with 1 additions and 3 deletions
|
|
@ -1,7 +1,5 @@
|
|||
{
|
||||
servers {
|
||||
metrics
|
||||
}
|
||||
metrics
|
||||
admin 0.0.0.0:2019
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue