mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 14:06:17 -04:00
docs: Update info about metrics for 2.6
Also add events.handlers namespace and fix dhall link.
This commit is contained in:
parent
7ed2cf1bfa
commit
685dfc83c1
5 changed files with 25 additions and 2 deletions
|
@ -9,6 +9,20 @@ Caddy server on an embedded device, it's likely that at some point you'll want
|
|||
to have a high-level overview of what Caddy is doing, and how long it's taking.
|
||||
In other words, you're going to want to be able to _monitor_ Caddy.
|
||||
|
||||
## Enabling metrics
|
||||
|
||||
You'll need to turn metrics on. If using a Caddyfile, enable metrics [in global options](/docs/caddyfile/options#metrics):
|
||||
|
||||
```caddy
|
||||
{
|
||||
servers {
|
||||
metrics
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
If using JSON, enable metrics in your [server configuration](/docs/json/apps/http/servers/) by adding `"metrics": {}`.
|
||||
|
||||
## Prometheus
|
||||
|
||||
[Prometheus](https://prometheus.io) is a monitoring platform that collects
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue