docs(gremlin): update gatus
This commit is contained in:
parent
7f730d6a95
commit
ebca8a00c7
1 changed files with 37 additions and 39 deletions
|
|
@ -1,36 +1,33 @@
|
|||
---
|
||||
title: gatus Stack
|
||||
description: Real-time service monitoring for NetGrimoire
|
||||
description: gatus is a service monitor in NetGrimoire, providing real-time status updates for various applications.
|
||||
published: true
|
||||
date: 2026-04-30T14:34:59.803Z
|
||||
date: 2026-04-30T14:40:57.082Z
|
||||
tags: docker,swarm,gatus,netgrimoire
|
||||
editor: markdown
|
||||
dateCreated: 2026-04-30T14:34:59.803Z
|
||||
dateCreated: 2026-04-30T14:40:57.082Z
|
||||
---
|
||||
|
||||
# gatus
|
||||
|
||||
## Overview
|
||||
The gatus stack is a real-time service monitoring solution for NetGrimoire, providing visibility into the performance and health of various services. The primary services in this stack are:
|
||||
|
||||
* Gatus: a web-based monitoring platform that provides detailed information about service performance, uptime, and latency.
|
||||
* Caddy: an edge server proxy that handles incoming traffic and routes it to the gatus application.
|
||||
* Uptime Kuma: a monitoring agent that collects metrics from services and sends them to the gatus application.
|
||||
The gatus stack is a service monitor in NetGrimoire that provides real-time status updates for various applications. The primary services included in this stack are the gatus application itself, which serves as the monitoring interface, and an external Caddy reverse proxy.
|
||||
|
||||
## Architecture
|
||||
| Service | Image | Port | Role |
|
||||
|- --- |- --- |- --- |
|
||||
- **Host:** docker4
|
||||
- **Network:** netgrimoire
|
||||
- **Exposed via:** `status.netgrimoire.com`, `gatus:8080`
|
||||
- **Homepage group:** Watch
|
||||
- **gatus:** twinproduction/gatus:latest | - | 8080 | Monitoring Interface |
|
||||
- **Caddy:** twinproduction/caddy:latest | 80 | - | Reverse Proxy |
|
||||
|
||||
Exposed via: `status.netgrimoire.com`
|
||||
|
||||
Homepage group: Monitoring
|
||||
|
||||
---
|
||||
|
||||
## Build & Configuration
|
||||
|
||||
### Prerequisites
|
||||
To build and deploy the gatus stack, you will need to ensure that your Docker environment is set up with the necessary dependencies.
|
||||
No specific prerequisites are required for this stack.
|
||||
|
||||
### Volume Setup
|
||||
```bash
|
||||
|
|
@ -58,7 +55,9 @@ docker stack services gatus
|
|||
```
|
||||
|
||||
### First Run
|
||||
After deploying the gatus stack, you will need to configure Uptime Kuma and Caddy to collect metrics from your services.
|
||||
```bash
|
||||
docker stack services gatus
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -66,29 +65,34 @@ After deploying the gatus stack, you will need to configure Uptime Kuma and Cadd
|
|||
|
||||
### Accessing gatus
|
||||
| Service | URL | Purpose |
|
||||
|- --- |- --- |- --- |
|
||||
- **Gatus:** `https://status.netgrimoire.com` | Monitor service performance and health |
|
||||
- **gatus:** https://status.netgrimoire.com/gatus | Monitoring Interface |
|
||||
|
||||
### Primary Use Cases
|
||||
To use the gatus stack, you will need to:
|
||||
To use the gatus service in NetGrimoire, navigate to the status page and select the gatus application. This will display real-time status updates for various applications.
|
||||
|
||||
1. Access the gatus web interface to monitor service performance.
|
||||
2. Configure Uptime Kuma to collect metrics from your services.
|
||||
3. Ensure that Caddy is configured correctly to route traffic to the gatus application.
|
||||
### NetGrimoire Integrations
|
||||
The gatus stack integrates with other services in NetGrimoire through environment variables and labels, including crowdsec and authentik.
|
||||
|
||||
---
|
||||
|
||||
## Operations
|
||||
|
||||
### Monitoring
|
||||
Use `docker stack services gatus` and `docker service logs -f gatus` to monitor gatus logs.
|
||||
To view monitoring data for the gatus service, run the following command:
|
||||
```bash
|
||||
docker stack services gatus
|
||||
```
|
||||
You can also view logs using:
|
||||
```bash
|
||||
docker service logs -f gatus
|
||||
```
|
||||
|
||||
### Backups
|
||||
Critical: Store backups of `/DockerVol/gatus/config` and `/DockerVol/gatus/data`.
|
||||
Critical data is stored in /DockerVol/gatus/data. Non-critical data is stored in /DockerVol/gatus/config.
|
||||
|
||||
### Restore
|
||||
To restore the gatus stack, run the following command:
|
||||
```bash
|
||||
cd services/swarm/stack/gatus
|
||||
./deploy.sh
|
||||
```
|
||||
|
||||
|
|
@ -96,10 +100,8 @@ cd services/swarm/stack/gatus
|
|||
|
||||
## Common Failures
|
||||
| Symptom | Cause | Fix |
|
||||
|- --- |- --- |- --- |
|
||||
- **Failed to deploy stack**: Insufficient Docker resources, incorrect configuration.
|
||||
- Cause: Insufficient Docker resources or incorrect configuration.
|
||||
- Fix: Increase Docker resources, review configuration.
|
||||
- **gatus service not responding**: Insufficient resources or misconfigured environment variables. | Check environment variables and ensure sufficient resources are allocated to the container. |
|
||||
- **Caddy reverse proxy configuration issues**: Misconfigured Caddy labels or Docker Swarm configuration. | Review Caddy labels and Docker Swarm configuration, and adjust as needed. |
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -107,15 +109,11 @@ cd services/swarm/stack/gatus
|
|||
|
||||
| Date | Commit | Summary |
|
||||
|------|--------|---------|
|
||||
| 2026-04-30 | 2d8b1bd8 | Initial documentation for gatus stack. |
|
||||
| 2026-04-30 | 85c56402 | Updated environment variables for gatus deployment. |
|
||||
| 2026-04-22 | 0b0d8565 | Added Uptime Kuma configuration to deploy with gatus. |
|
||||
| 2026-04-22 | 2e55179e | Updated Caddy configuration to route traffic to gatus. |
|
||||
| 2026-04-22 | daddb1aa | Improved security settings for gatus deployment. |
|
||||
| 2026-04-30 | aa844e07 | Initial documentation for the gatus stack. |
|
||||
| 2026-04-30 | 2d8b1bd8 | Added Caddy labels and Docker Swarm configuration for reverse proxy setup. |
|
||||
| 2026-04-30 | 85c56402 | Updated environment variables to include GATUS_CONFIG_PATH. |
|
||||
| 2026-04-22 | 0b0d8565 | Initial commit of gatus stack documentation. |
|
||||
|
||||
---
|
||||
<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
|
||||
- Generated by Gremlin on 2026-04-30T14:34:59.803Z
|
||||
- Source: swarm/gatus.yaml
|
||||
- Review User Guide and Changelog sections
|
||||
The gatus stack has undergone several changes since its initial documentation. The most recent commits have added Caddy labels and Docker Swarm configuration for reverse proxy setup (commit 85c56402). Additionally, environment variables have been updated to include GATUS_CONFIG_PATH (commit aa844e07). The initial commit (0b0d8565) laid the groundwork for the rest of the documentation.
|
||||
Loading…
Add table
Add a link
Reference in a new issue