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:
Mohammed Al Sahaf 2024-02-08 09:40:50 +03:00 committed by GitHub
parent a57d9e3ea2
commit 6882c88152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 81 additions and 44 deletions

View file

@ -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