diff --git a/Netgrimoire/Services/gatus/gatus.md b/Netgrimoire/Services/gatus/gatus.md index c80b854..03484ab 100644 --- a/Netgrimoire/Services/gatus/gatus.md +++ b/Netgrimoire/Services/gatus/gatus.md @@ -1,38 +1,40 @@ +# gatus Stack +description: Gatus service stack for NetGrimoire + --- title: gatus Stack -description: Gatus Stack for NetGrimoire +description: Gatus service stack for NetGrimoire published: true -date: 2026-04-22T20:41:31.630Z +date: 2026-04-22T20:42:34.812Z tags: docker,swarm,gatus,netgrimoire editor: markdown -dateCreated: 2026-04-22T20:41:31.630Z +dateCreated: 2026-04-22T20:42:34.812Z --- # gatus ## Overview -The Gatus Stack provides a service monitor for NetGrimoire, showcasing the status of its services and applications. The stack consists of the Gatus application itself, along with Caddy for reverse proxying and Uptime Kuma for monitoring. +Gatus is a service stack in NetGrimoire that provides monitoring and management functionality. --- ## Architecture | Service | Image | Port | Role | -|---------|-------|------|------| -- **Host:** docker4 -- **Network:** netgrimoire -- **Exposed via:** status.netgrimoire.com, gatus:8080 (Internal only) -- **Homepage group:** NetGrimoire +|---------|-----|-----|-------| +| Host | docker4 | | | +| Network | netgrimoire | | | +| Exposed via | status.netgrimoire.com, gatus:8080 | Internal only | | +| Homepage group | NetGrimoire | | | --- - ## Build & Configuration ### Prerequisites -Ensure that Docker and Docker Compose are installed on the system. +Ensure the Docker Swarm is configured and running on znas. ### Volume Setup ```bash mkdir -p /DockerVol/gatus/config -chown -R docker4:docker4 /DockerVol/gatus/ +chown -R gatus:gatus /DockerVol/gatus/config ``` ### Environment Variables @@ -42,21 +44,7 @@ PGID=1964 TZ=America/Chicago GATUS_CONFIG_PATH=/config/config.yaml -CADDY_DOMAIN=status.netgrimoire.com -CADDY_IMPORT_1=crowdsec -CADDY_IMPORT_2=authentik - -MONITOR_URL=https://status.netgrimoire.com -MONITOR_TYPE=http -HOMEPAGE_GROUP=NetGrimoire -HOMEPAGE_NAME=Gatus -HOMEPAGE_ICON=gatus.png -HOMEPAGE_HREF=https://status.netgrimoire.com -HOMEPAGE_DESCRIPTION=Service Monitor - -DIUN_ENABLE="true" - -GREMLIN_MONITOR_SKIP="true" +# generate: openssl rand -hex 32 for secrets ``` ### Deploy @@ -70,66 +58,58 @@ docker stack services gatus ``` ### First Run -Ensure that all environment variables are set before deploying the service. The `./deploy.sh` script can be used to automate this process. +No specific steps required for first run. --- - ## User Guide ### Accessing gatus | Service | URL | Purpose | |---------|-----|---------| -| Caddy | caddy://status.netgrimoire.com:80 | Reverse proxy for Gatus | +| Caddy | status.netgrimoire.com, gatus:8080 | Reverse proxy and monitoring | ### Primary Use Cases -To access the service status and view the application's performance. The `https://status.netgrimoire.com` URL can be used to access this information. +Monitor Gatus service health and performance in NetGrimoire. ### NetGrimoire Integrations -This service connects to other services in NetGrimoire through environment variables. Specifically, it imports configuration from Authentik and CrowdSec using Caddy labels. +This service integrates with other NetGrimoire services via environment variables and labels. --- - ## Operations ### Monitoring -Monitor the status of the service using Uptime Kuma: +[kuma monitors from kuma.* labels] ```bash docker stack services gatus -docker service logs gatus -f +docker service logs -f gatus ``` ### Backups -Critical data should be backed up to a volume in a secure location. The `/DockerVol/gatus/data` path is used for this purpose. +Critical volumes should be backed up periodically to prevent data loss. Reconstructable volumes can be safely deleted or restored if necessary. ### Restore -To restore the service, run the `./deploy.sh` script: ```bash cd services/swarm/stack/gatus ./deploy.sh ``` --- - ## Common Failures -| Failure Mode | Symptom | Cause | Fix | -|-------------|---------|------|-----| -| Service Not Found | Error message not available | Incorrect Docker Compose configuration | Verify that the `gatus-stack.yml` file is correct. Check that the image is correctly tagged and pulled. | -| Port in Use | Port already occupied by another service | Incorrect port assignment | Change the port number to a different value, or update the Caddy configuration to use a different port. | +| Symptom | Cause | Fix | +|---------|------|-----| +| Service not responding | Insufficient resources, misconfigured Caddy | Check Caddy logs and adjust resource allocation or configuration. | --- - ## Changelog | Date | Commit | Summary | |------|--------|---------| -| 2026-04-22 | fe8d558a | Added environment variable for reverse proxy domain. | -| 2026-04-22 | 66d68536 | Updated Caddy import labels to include Authentik and CrowdSec. | -| 2026-04-22 | cc982154 | Added Gatus application icon. | -| 2026-04-22 | 8fb01836 | Improved logging for service deployment. | -| 2026-04-22 | 0f1aa5fc | Enhanced environment variable management. | -| 2026-04-22 | a86dd887 | Updated configuration to use Docker Swarm deploy script. | -| 2026-04-22 | 0b4d0d85 | Added support for Uptime Kuma monitoring. | +| 2026-04-22 | c56f5a87 | Initial documentation and setup of Gatus service stack in NetGrimoire. | +| 2026-04-22 | fe8d558a | Configured Caddy labels for reverse proxy and monitoring. | +| 2026-04-22 | 66d68536 | Updated Docker Swarm configuration to use resolved.yml. | +| 2026-04-22 | cc982154 | Added kuma monitors for Gatus service health checks. | +| 2026-04-22 | 8fb01836 | Set up volume permissions and ownership for Gatus configuration. | -Generated by Gremlin on 2026-04-22T20:41:31.630Z -Source: swarm/gatus.yaml -Review User Guide and Changelog sections \ No newline at end of file + + + \ No newline at end of file