Statistics with Grafana/Prometheus with sensor based on Overleaf instance statistics- #178

This commit is contained in:
David Rotermund
2026-10-27 13:43:32 +00:00
parent 6f2cf1c060
commit 05b1b04513
57 changed files with 3456 additions and 22 deletions
@@ -0,0 +1,26 @@
# mongo-probe — protocol-level liveness check of the stack Mongo.
# Reuses the stack's own mongo image: its mongosh is the canonical client.
# healthy == the db answers a real ping (same pattern as the OlliTeX
# toolkit mongo-probe).
services:
mongo-probe:
image: mongo:${MONGO_VERSION:-9.0}
container_name: mongo-probe
hostname: mongo-probe
restart: unless-stopped
command: ["sh", "-c", "sleep infinity"]
environment:
MONGO_HOSTNAME: ${MONGO_HOSTNAME:-mongo}
MONGO_PORT: ${MONGO_PORT:-27017}
healthcheck:
test: ["CMD-SHELL", "mongosh --quiet --host ${MONGO_HOSTNAME} --port ${MONGO_PORT} --eval 'db.adminCommand({ping:1})' >/dev/null 2>&1 || exit 1"]
interval: 15s
timeout: 5s
retries: 5
start_period: 20s
networks:
- overleaf-network
networks:
overleaf-network:
external: true