mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-25 09:40:13 +08:00
ebc278ec98
* metrics: allow disabling OpenMetrics negotiation Signed-off-by: Dave Henderson <dhenderson@gmail.com> * fixup! metrics: allow disabling OpenMetrics negotiation
37 lines
431 B
Plaintext
37 lines
431 B
Plaintext
:80 {
|
|
metrics /metrics {
|
|
disable_openmetrics
|
|
}
|
|
}
|
|
----------
|
|
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"listen": [
|
|
":80"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": [
|
|
{
|
|
"path": [
|
|
"/metrics"
|
|
]
|
|
}
|
|
],
|
|
"handle": [
|
|
{
|
|
"disable_openmetrics": true,
|
|
"handler": "metrics"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|