mirror of
https://github.com/caddyserver/website.git
synced 2025-06-19 12:46:10 -04:00
restructure the "build from source" page (#370)
* restructure the "build from source" page * partially address feedback * address feedback * Polishing, more cross-linking, update Docker Compose --------- Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
parent
a57d9e3ea2
commit
6882c88152
3 changed files with 81 additions and 44 deletions
|
@ -11,10 +11,9 @@ 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):
|
||||
You'll need to turn metrics on.
|
||||
|
||||
> **Note**
|
||||
> Caddy 2.6 made metrics opt-in. To enable them, use either [Caddyfile global options](/docs/caddyfile/options#metrics) or [the `metrics` parameter](/docs/json/apps/http/servers/metrics/) of a server's JSON config.
|
||||
If using a Caddyfile, enable metrics [in global options](/docs/caddyfile/options#metrics):
|
||||
|
||||
```caddy
|
||||
{
|
||||
|
@ -24,7 +23,7 @@ You'll need to turn metrics on. If using a Caddyfile, enable metrics [in global
|
|||
}
|
||||
```
|
||||
|
||||
If using JSON, enable metrics in your [server configuration](/docs/json/apps/http/servers/) by adding `"metrics": {}`.
|
||||
If using JSON, add `"metrics": {}` to your [`apps > http > servers` configuration](/docs/json/apps/http/servers/).
|
||||
|
||||
## Prometheus
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue