Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sydowma/mongo-event-monitor
MongoMetricCommandListener is a Spring Boot component that monitors MongoDB command events, capturing metrics such as command success, error rates, and execution times. These metrics are recorded using Micrometer and can be visualized through various monitoring tools supported by Micrometer.
https://github.com/sydowma/mongo-event-monitor
grafana mongodb
Last synced: 22 days ago
JSON representation
MongoMetricCommandListener is a Spring Boot component that monitors MongoDB command events, capturing metrics such as command success, error rates, and execution times. These metrics are recorded using Micrometer and can be visualized through various monitoring tools supported by Micrometer.
- Host: GitHub
- URL: https://github.com/sydowma/mongo-event-monitor
- Owner: sydowma
- License: apache-2.0
- Created: 2024-05-22T06:01:07.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-07-18T11:48:31.000Z (6 months ago)
- Last Synced: 2024-07-18T14:28:31.697Z (6 months ago)
- Topics: grafana, mongodb
- Language: Java
- Homepage:
- Size: 359 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MongoDB Command Metrics Monitor
## Overview
MongoMetricCommandListener is a Spring Boot component that monitors MongoDB command events, capturing metrics such as command success, error rates, and execution times. These metrics are recorded using Micrometer and can be visualized through various monitoring tools supported by Micrometer.## Features
Command Success and Error Counters: Tracks the number of successful and failed MongoDB commands.
Command Timing: Measures the execution time of MongoDB commands.
Slow Query Detection: Identifies slow queries (default threshold: 1000ms) and records their occurrence and duration.## Demo
![img.png](img.png)## Requirements
- Java 17 or higher
- Spring Boot 2.3 or higher
- MongoDB Java Driver 4.x
- Micrometer 1.5 or higher## start demo
```shell
docker compose up
```Contributing
Contributions are welcome! Please submit a pull request or open an issue to discuss potential changes.