@@ -48,11 +48,13 @@ Defined in the `notifications` section of the configuration file.
48
48
49
49
Connection configuration for a Prometheus instance that collects metrics from your Kubernetes cluster,
50
50
from which Icinga for Kubernetes [ synchronizes predefined metrics] ( 01-About.md#metric-sync ) to display charts in the UI.
51
- Defined in the ` prometheus ` section of the configuration file.
51
+ Defined in the ` prometheus ` section of the configuration file. If one of username or password is set, both must be set.
52
52
53
- | Option | Description |
54
- | --------| --------------------------------------------------------------------------------------|
55
- | url | ** Optional.** Prometheus server URL. If not set, metric synchronization is disabled. |
53
+ | Option | Description |
54
+ | ----------| --------------------------------------------------------------------------------------|
55
+ | url | ** Optional.** Prometheus server URL. If not set, metric synchronization is disabled. |
56
+ | username | ** Optional.** Prometheus username. |
57
+ | password | ** Optional.** Prometheus password. |
56
58
57
59
# Configuration via Environment Variables
58
60
@@ -90,6 +92,8 @@ The configurations set by environment variables override the ones set by YAML.
90
92
91
93
## Prometheus Configuration
92
94
93
- | Env | Description |
94
- | ----------------| --------------------------------------------------------------------------------------|
95
- | PROMETHEUS_URL | ** Optional.** Prometheus server URL. If not set, metric synchronization is disabled. |
95
+ | Env | Description |
96
+ | ---------------------| --------------------------------------------------------------------------------------|
97
+ | PROMETHEUS_URL | ** Optional.** Prometheus server URL. If not set, metric synchronization is disabled. |
98
+ | PROMETHEUS_USERNAME | ** Optional.** Prometheus username. |
99
+ | PROMETHEUS_PASSWORD | ** Optional.** Prometheus password. |
0 commit comments