Skip to content

rubentalstra/librechat-prom-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

149 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LibreChat Prometheus Exporter

CI CD Docs License: MIT GHCR

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.

Quick start

# 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

Where to next

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.

GDPR compliance

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.

Contributing

See CONTRIBUTING.md and the Contributing docs.

License

MIT — © Ruben Talstra.

About

A lightweight Node.js service built with Express, Mongoose, and prom-client that collects metrics from your LibreChat MongoDB database and exposes them on a "/metrics" endpoint for Prometheus scraping. Easily integrate with Grafana dashboards for comprehensive monitoring and visualization.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors