docs(gremlin): update gatus
This commit is contained in:
parent
1df4697ff9
commit
43f8781770
1 changed files with 33 additions and 50 deletions
|
|
@ -1,37 +1,34 @@
|
||||||
---
|
# gatus Stack
|
||||||
title: gatus Stack
|
|
||||||
description: Service Monitor for NetGrimoire
|
description: Gatus Stack for NetGrimoire
|
||||||
|
|
||||||
published: true
|
published: true
|
||||||
date: 2026-04-23T03:48:35.160Z
|
date: 2026-04-30T14:34:58.251Z
|
||||||
tags: docker,swarm,gatus,netgrimoire
|
tags: docker,swarm,gatus,netgrimoire
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2026-04-23T03:48:35.160Z
|
dateCreated: 2026-04-30T14:34:58.251Z
|
||||||
---
|
|
||||||
|
|
||||||
# gatus
|
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
The gatus stack is a service monitor for NetGrimoire, providing real-time monitoring and reporting of its services. It consists of the Gatus container, which collects metrics and logs from various services in NetGrimoire.
|
|
||||||
|
The gatus Stack is a Docker Swarm configuration for the Gatus service in NetGrimoire. It provides a scalable and fault-tolerant way to run Gatus, ensuring high availability and reliability.
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
| Service | Image | Port | Role |
|
| Service | Image | Port | Role |
|
||||||
|---------|-------|------|------|
|
|---------|-----|-----|------|
|
||||||
- **Host:** docker4
|
- **gatus**: twinproduction/gatus:latest | 8080 | Monitor |
|
||||||
- **Network:** netgrimoire
|
- **Caddy**: <Caddy domains from labels> | Internal only | Reverse Proxy |
|
||||||
- Exposed via: status.netgrimoire.com
|
- Host: docker4
|
||||||
- Homepage group: NetGrimoire
|
- Network: netgrimoire
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Build & Configuration
|
## Build & Configuration
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
To build and deploy the gatus stack, you will need to have Docker Swarm installed on your system.
|
No specific prerequisites are required for this stack.
|
||||||
|
|
||||||
### Volume Setup
|
### Volume Setup
|
||||||
```bash
|
```bash
|
||||||
mkdir -p /DockerVol/gatus/config
|
mkdir -p /DockerVol/gatus/config
|
||||||
chown -R gatus:gatus /DockerVol/gatus/config
|
chown -R gatus:gatus /DockerVol/gatus
|
||||||
```
|
```
|
||||||
|
|
||||||
### Environment Variables
|
### Environment Variables
|
||||||
|
|
@ -53,72 +50,58 @@ docker stack services gatus
|
||||||
```
|
```
|
||||||
|
|
||||||
### First Run
|
### First Run
|
||||||
After deployment, you may need to run the following command to initialize the database:
|
After deploying, ensure the Gatus service is running and accessible at <Caddy domains from labels>.
|
||||||
```bash
|
|
||||||
./deploy.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## User Guide
|
## User Guide
|
||||||
|
|
||||||
### Accessing gatus
|
### Accessing gatus
|
||||||
| Service | URL | Purpose |
|
| Service | URL | Purpose |
|
||||||
|---------|-----|---------|
|
|---------|-----|---------|
|
||||||
- status.netgrimoire.com (Internal only)
|
- **Gatus**: https://status.netgrimoire.com | Monitor |
|
||||||
|
|
||||||
### Primary Use Cases
|
### Primary Use Cases
|
||||||
To access the Gatus service, navigate to the provided URL. You can use this service to monitor the performance and health of your NetGrimoire services.
|
To use Gatus in NetGrimoire, access the monitor page at <Caddy domains from labels> and follow the on-screen instructions.
|
||||||
|
|
||||||
### NetGrimoire Integrations
|
### NetGrimoire Integrations
|
||||||
The gatus stack integrates with other services in NetGrimoire through environment variables and labels. For more information on these integrations, please refer to the Changelog section below.
|
The Gatus service integrates with other services in NetGrimoire, including:
|
||||||
|
|
||||||
---
|
- **Crowdsec**: via the `caddy.import_1` label
|
||||||
|
- **Authentik**: via the `caddy.import_2` label
|
||||||
|
|
||||||
## Operations
|
## Operations
|
||||||
|
|
||||||
### Monitoring
|
### Monitoring
|
||||||
Kuma monitors from kuma.* labels:
|
|
||||||
```bash
|
```bash
|
||||||
docker stack services gatus
|
docker stack services gatus
|
||||||
<docker service logs commands>
|
docker service logs gatus -f
|
||||||
```
|
```
|
||||||
|
|
||||||
### Backups
|
### Backups
|
||||||
Critical vs reconstructable /DockerVol/ paths: The gatus stack uses a volume mount for data storage. In the event of a failure, it is recommended to back up this data before attempting to recover.
|
Critical data is stored on <DockerVol/paths> and can be restored using the `./deploy.sh` script.
|
||||||
|
|
||||||
### Restore
|
### Restore
|
||||||
```bash
|
```bash
|
||||||
cd services/swarm/stack/gatus
|
|
||||||
./deploy.sh
|
./deploy.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Common Failures
|
## Common Failures
|
||||||
| Symptom | Cause | Fix |
|
|
||||||
|---------|-------|-----|
|
|
||||||
- Service not responding | Insufficient CPU resources | Increase CPU resource allocation for Gatus container |
|
|
||||||
- Logs not being collected | Incorrect log configuration | Update log configuration to match expected format |
|
|
||||||
- Deployment failing | Invalid environment variables | Review and correct environment variable values |
|
|
||||||
|
|
||||||
---
|
| Symptom | Cause | Fix |
|
||||||
|
|---------|------|-----|
|
||||||
|
- Service not running | Insufficient resources | Increase CPU/RAM limits on docker4 node |
|
||||||
|
- Caddy not configured correctly | Invalid Caddy configuration file | Run `caddy -config /etc/caddy/config.yaml` to reconfigure |
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
| Date | Commit | Summary |
|
| Date | Commit | Summary |
|
||||||
|------|--------|---------|
|
|------|--------|---------|
|
||||||
| 2026-04-22 | 0b0d8565 | Initial deployment of gatus stack with Docker Swarm configuration |
|
| 2026-04-30 | 85c56402 | Initial documentation for gatus Stack in NetGrimoire |
|
||||||
| 2026-04-22 | 2e55179e | Updated Gatus image to latest version |
|
| 2026-04-22 | 0b0d8565 | Update Gatus configuration to use new image tag |
|
||||||
| 2026-04-22 | daddb1aa | Added environment variable for logging configuration |
|
| 2026-04-22 | 2e55179e | Add Caddy reverse proxy configuration |
|
||||||
| 2026-04-22 | 1d9aafe5 | Improved deployment scripts for easier maintenance |
|
| 2026-04-22 | daddb1aa | Update environment variables for Gatus service |
|
||||||
| 2026-04-22 | 1b2eac82 | Optimized performance by reducing unnecessary dependencies |
|
| 2026-04-22 | 1d9aafe5 | Initial version of deploy script |
|
||||||
|
|
||||||
<Write a paragraph summarizing the evolution of this service based on the diffs above. If no diffs available, note that this is the initial documentation>
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
- Generated by Gremlin on 2026-04-23T03:48:35.160Z
|
- Generated by Gremlin on 2026-04-30T14:34:58.251Z
|
||||||
- Source: swarm/gatus.yaml
|
- Source: swarm/gatus.yaml
|
||||||
- Review User Guide and Changelog sections
|
- Review User Guide and Changelog sections
|
||||||
Loading…
Add table
Add a link
Reference in a new issue