Lightweight Node.js service that connects to a LibreChat MongoDB database, collects useful metrics, and exposes them on /metrics for Prometheus to scrape and Grafana to visualize.
# 1. Copy the example env file and edit MONGO_URI
cp .env.example .env
# 2. Run with docker-compose (pulls prebuilt image from GHCR)
docker compose up -d
# 3. Confirm
curl -fsS http://localhost:9087/metrics | head| You want to... | See |
|---|---|
| Install it (Docker or local) | Installation |
| Configure environment vars | Environment variables |
Secure /metrics with auth |
Auth |
| See every metric exposed | Metrics reference |
| Tune for scale | Tuning |
| Debug a problem | Troubleshooting |
| Contribute | Contributing |
The published image is multi-arch (linux/amd64 + linux/arm64), signed with cosign, SLSA build-provenance attested, and SBOM-attached on tagged releases.
This project has been developed with privacy in mind. It exposes only aggregated metrics that do not contain personally identifiable information (PII), adhering to the principle of data minimization. Overall GDPR compliance depends on your complete data-processing workflow and deployment configuration; you are responsible for ensuring your implementation meets all applicable regulations. This statement is informational and does not constitute legal advice.
See CONTRIBUTING.md and the Contributing docs.
MIT — © Ruben Talstra.