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
- The port for Prometheus metrics can be configured using:
52
+
```conf
53
+
metricsProvider.httpPort=7000 # Default port is 7000
54
+
```
55
+
56
+
#### Enabling HTTPS for Prometheus Metrics:
57
+
58
+
ZooKeeper also supports SSL for Prometheus metrics, which provides secure data transmission. To enable this, configure an HTTPS port and set up SSL certificates as follows:
59
+
60
+
- Define the HTTPS port:
61
+
```conf
62
+
metricsProvider.httpsPort=4443
63
+
```
64
+
65
+
- Configure the SSL key store (holds the server’s private key and certificates):
metricsProvider.ssl.trustStore.type=jks # Default is JKS
77
+
```
78
+
79
+
-**Note**: You can enable both HTTP and HTTPS simultaneously by defining both ports:
80
+
```conf
81
+
metricsProvider.httpPort=7000
82
+
metricsProvider.httpsPort=4443
83
+
```
44
84
### Prometheus
45
85
- Running a [Prometheus](https://prometheus.io/) monitoring service is the easiest way to ingest and record ZooKeeper's metrics.
46
-
- Pre-requisites:
47
-
- enable the `Prometheus MetricsProvider` by setting `metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider` in the zoo.cfg.
48
-
- the Port is also configurable by setting `metricsProvider.httpPort`(the default value:7000)
86
+
49
87
- Install Prometheus:
50
88
Go to the official website download [page](https://prometheus.io/download/), download the latest release.
0 commit comments