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
@@ -202,6 +206,59 @@ The following environment variables can be used to configure Kafka Connectors:
202
206
203
207
[Back to top](#toc)
204
208
209
+
## 5. Monitoring Stack
210
+
211
+
The monitoring stack consists of Prometheus for metrics collection and Grafana for visualization, along with several exporters that collect metrics from different services. The configuration is defined in [docker-compose-monitoring.yml](docker-compose-monitoring.yml).
212
+
213
+
Set the `COMPOSE_PROFILES` environmental variable as follows:
214
+
215
+
-`monitoring_full` - deploys all resources in the [docker-compose-monitoring.yml](docker-compose-monitoring.yml) file
216
+
-`prometheus` - deploys only the Prometheus service
217
+
-`grafana` - deploys only the Grafana service
218
+
-`node_exporter` - deploys only the Node Exporter service for system metrics
219
+
-`kafka_exporter` - deploys only the Kafka Lag Exporter service
220
+
-`mongodb_exporter` - deploys only the MongoDB Exporter service
221
+
222
+
### Configuration
223
+
224
+
The following environment variables can be used to configure the monitoring stack:
225
+
226
+
| Environment Variable | Description |
227
+
|---|---|
228
+
|`PROMETHEUS_RETENTION`| Data retention period for Prometheus (default: 15d) |
The scrape configurations for the monitoring stack are defined in the [prometheus.yml](monitoring/prometheus/prometheus.yml) file. If you would like to add a new scrape configuration, you can do so by adding a new job to the `scrape_configs` section. Please note that this file doesn't support environment variables, so you will need to manually edit the file.
252
+
253
+
The following scrape configurations are available:
254
+
255
+
-`prometheus` - scrapes the Prometheus metrics
256
+
-`node_exporter` - scrapes the Node Exporter metrics
257
+
-`kafka_exporter` - scrapes the Kafka Lag Exporter metrics
258
+
-`mongodb_exporter` - scrapes the MongoDB Exporter metrics
259
+
260
+
[Back to top](#toc)
261
+
205
262
## Security Notice
206
263
207
264
While default passwords are provided for development convenience, it is **strongly recommended** to:
0 commit comments