mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Statistics with Grafana/Prometheus with sensor based on Overleaf instance statistics- #178
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user