feat: add IM service health and metrics endpoints

This commit is contained in:
richjohnrambo
2026-09-09 14:24:40 +08:00
parent 4c9bdd64e0
commit 9159ec7fc7
11 changed files with 616 additions and 6 deletions
+2 -2
View File
@@ -223,9 +223,9 @@ RUN mkdir /botdata
RUN chmod +x entrypoint.sh
RUN chmod +x credentials.sh
# Healthcheck: check if port 6060 is open
# Healthcheck: verify the process and database dependency are responsive.
HEALTHCHECK --interval=1m --timeout=3s --start-period=30s \
CMD nc -z localhost 6060 || exit 1
CMD wget -q -O /dev/null http://localhost:6060/healthz || exit 1
# Generate config from template and run the server.
ENTRYPOINT ["./entrypoint.sh"]
+1 -1
View File
@@ -123,7 +123,7 @@ RUN mkdir -p /botdata static \
&& chmod +x entrypoint.sh credentials.sh tinode init-db apply-hotgo-tenant-db
HEALTHCHECK --interval=1m --timeout=3s --start-period=30s \
CMD nc -z localhost 6060 || exit 1
CMD wget -q -O /dev/null http://localhost:6060/healthz || exit 1
ENTRYPOINT ["./entrypoint.sh"]