Disable prometheus metrics by default

The HTTP server should only be enabled if a user explicitly sets a
port for it.
This commit is contained in:
Ben Johnson
2021-01-24 09:16:23 -07:00
parent d2eb4fa5ba
commit 8f5761ee13
2 changed files with 13 additions and 8 deletions

View File

@@ -100,6 +100,17 @@ dbs:
- path: /path/to/replica
```
### Monitoring replication
You can also enable a Prometheus metrics endpoint to monitor replication by
specifying a bind address with the `addr` field:
```yml
addr: ":9090"
```
This will make metrics available at: http://localhost:9090/metrics
### Other configuration options
@@ -119,6 +130,7 @@ These replica options are only available for S3 replicas:
- `sync-interval`—Replication sync frequency.
## Usage
### Replication