mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-25 09:24:04 +01:00
43 lines
836 B
Markdown
43 lines
836 B
Markdown
# gatus
|
|
|
|
[![Docker pulls](https://img.shields.io/docker/pulls/twinproduction/gatus.svg)](https://cloud.docker.com/repository/docker/twinproduction/gatus)
|
|
|
|
A service health dashboard in Go that is meant to be used as a docker
|
|
image with a custom configuration file.
|
|
|
|
|
|
## Usage
|
|
|
|
```yaml
|
|
services:
|
|
- name: twinnation # Name of your service, can be anything
|
|
url: https://twinnation.org/actuator/health
|
|
interval: 15s # Duration to wait between every status check (opt. default: 10s)
|
|
failure-threshold: 3
|
|
conditions:
|
|
- "$STATUS == 200"
|
|
- name: github
|
|
url: https://api.github.com/healthz
|
|
conditions:
|
|
- "$STATUS == 200"
|
|
```
|
|
|
|
|
|
## Running the tests
|
|
|
|
```
|
|
go test ./... -mod vendor
|
|
```
|
|
|
|
|
|
## Building with Docker
|
|
|
|
```
|
|
docker build . -t gatus
|
|
```
|
|
|
|
|
|
## Using in Production
|
|
|
|
See the [example](example) folder.
|