Add support for Prometheus pushgateway basic auth (#16230)

Co-authored-by: Joe Clarke <[email protected]>
This commit is contained in:
Joe Clarke
2024-07-21 20:03:32 +02:00
committed by GitHub
co-authored by Joe Clarke
parent 1f01d7e627
commit e6f02ea7ff
3 changed files with 28 additions and 0 deletions
+8
View File
@@ -35,6 +35,14 @@ continue to function as normal.
lnms config:set prometheus.prefix 'librenms'
```
If your pushgateway uses basic authentication, configure the following:
!!! setting "poller/prometheus"
```bash
lnms config:set prometheus.user username
lnms config:set prometheus.password password
```
## Prefix
Setting the 'prefix' option will cause all metric names to begin with