Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/userbradley/prom-status
Simple Status Checker using Prometheus to surface the data
https://github.com/userbradley/prom-status
Last synced: 28 days ago
JSON representation
Simple Status Checker using Prometheus to surface the data
- Host: GitHub
- URL: https://github.com/userbradley/prom-status
- Owner: userbradley
- Created: 2023-08-19T13:28:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-15T20:21:46.000Z (12 months ago)
- Last Synced: 2024-10-15T03:31:09.385Z (2 months ago)
- Language: Go
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prom Health Checker
Simple Go app that just pings a bunch of sites that you (politely) ask it to
## Application Specifics
### Port
The app listens on `tcp/9090`
### Endpoints
| Endpoint Name | What it does |
|---------------|--------------------------------|
| `/healthz` | Health check endpoint |
| `/metrics` | Exposes the prometheus Metrics |## Prometheus metrics
The application exposes 2 useful metrics per monitored app
| Endpoint |
|-----------------------------|
| `http_latency_milliseconds` |
| `http_up` |### `http_latency_milliseconds`
This endpoint responds with the most recent latency in milliseconds for the app to make an `http get` to the site
### `http_up`
This is a binary operator which tells you if the app is reachable (`1`) or not (`0`)
### Example
```text
# HELP http_latency_milliseconds Latency of HTTP requests to endpoints
# TYPE http_latency_milliseconds gauge
http_latency_milliseconds{endpoint="breadnet"} 40
http_latency_milliseconds{endpoint="google"} 329
# HELP http_up Whether the HTTP endpoint is up (1) or down (0)
# TYPE http_up gauge
http_up{endpoint="breadnet"} 1
http_up{endpoint="google"} 1
```## How to run
```shell
podman run --rm -v $(pwd)/endpoints.yaml:/app/endpoints.yaml europe-west2-docker.pkg.dev/breadnet-container-store/public/prom-status:latest
```