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,20 @@
# overleaf-instance-sensor — self-contained prometheus gauge exporter for
# the PR yu-i-i/overleaf-cep#178 instance-statistics sensors.
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY package.json ./
RUN npm install --omit=dev --no-audit --no-fund
COPY sensor.mjs ./
RUN chown -R node:node /app
EXPOSE 9464
USER node
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=5 \
CMD wget -q --spider --timeout=3 http://127.0.0.1:9464/metrics || exit 1
ENTRYPOINT ["node", "sensor.mjs"]