You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`tls`|`object`| TLS configuration for the Prometheus exporter |
42
+
43
+
#### `Prometheus.tls`
44
+
45
+
| Configuration | Type | Description |
46
+
|---------------|------|-------------|
47
+
|`cert_file`|`string`| Path to the PEM-encoded certificate for the Prometheus exporter. Must be set with `key_file` unless `use_spire_svid` is enabled |
48
+
|`key_file`|`string`| Path to the PEM-encoded private key for the Prometheus exporter. Must be set with `cert_file` unless `use_spire_svid` is enabled |
49
+
|`client_ca_file`|`string`| Optional path to the PEM-encoded CA bundle used to verify client certificates for mTLS. Cannot be combined with `authorized_spiffe_ids`|
50
+
|`use_spire_svid`|`bool`| When `true`, serve the Prometheus endpoint with the current SPIRE SVID instead of `cert_file` and `key_file`|
51
+
|`authorized_spiffe_ids`|`list(string)`| Optional list of SPIFFE IDs allowed to connect to the Prometheus endpoint. Requires SPIRE trust bundles and cannot be combined with `client_ca_file`|
41
52
42
53
### `DogStatsd`
43
54
@@ -64,11 +75,17 @@ Here is a sample configuration:
64
75
telemetry {
65
76
Prometheus {
66
77
port = 9988
67
-
#optional TLS for prometheus
78
+
#optional TLS for prometheus
68
79
tls {
69
-
cert_file = "/path/to/cert.pem"
70
-
key_file = "/path/to/key.pem"
71
-
client_ca_file = "/path/to/ca.pem" # optional CA file for mTLS
80
+
use_spire_svid = true
81
+
authorized_spiffe_ids = [
82
+
"spiffe://example.org/monitoring/prometheus",
83
+
]
84
+
85
+
# Alternatively, configure a web certificate directly:
86
+
# cert_file = "/path/to/cert.pem"
87
+
# key_file = "/path/to/key.pem"
88
+
# client_ca_file = "/path/to/ca.pem" # optional CA file for mTLS
0 commit comments