mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-07-03 11:53:43 +02:00
README.md: Adding cool badges.
This commit is contained in:
parent
f0db33f9b1
commit
c19dc9a63b
1 changed files with 16 additions and 14 deletions
12
README.md
12
README.md
|
|
@ -1,5 +1,8 @@
|
||||||
# Antelope API Healthcheck for HAProxy
|
# Antelope API Healthcheck for HAProxy
|
||||||
|
|
||||||
|
[](https://github.com/eosswedenorg/antelope-api-healthcheck/actions/workflows/test.yml)
|
||||||
|
[](https://goreportcard.com/report/github.com/eosswedenorg/antelope-api-healthcheck)
|
||||||
|
|
||||||
This program implements Antelope healthcheck for HAProxy over TCP.
|
This program implements Antelope healthcheck for HAProxy over TCP.
|
||||||
|
|
||||||
## Compiling
|
## Compiling
|
||||||
|
|
@ -27,16 +30,15 @@ The protocol is simple and has 4 rules.
|
||||||
3. Each parameter inside a `Request` is separated by `|`
|
3. Each parameter inside a `Request` is separated by `|`
|
||||||
4. Each response contains exactly one `status code` (see below)
|
4. Each response contains exactly one `status code` (see below)
|
||||||
|
|
||||||
|
|
||||||
### Request
|
### Request
|
||||||
|
|
||||||
The following parameters are supported in a request and are ordered from
|
The following parameters are supported in a request and are ordered from
|
||||||
first to last below:
|
first to last below:
|
||||||
|
|
||||||
| # | Name | Required | Description |
|
| # | Name | Required | Description |
|
||||||
| - | ---------- | ----------------------- | ----------------------------------------------------------------------------------------------- |
|
| - | ---------- | ------------------------- | -------------------------------------------------------------------------------------------- |
|
||||||
| 1 | api | Yes | Type of API to check against, `v1` = standard, `v2` = Hyperion, `atomic` = atomicassets |
|
| 1 | api | Yes | Type of API to check against,`v1` = standard, `v2` = Hyperion, `atomic` = atomicassets |
|
||||||
| 2 | url | Yes (port default `80`) | http url to the api. `http(s)://<ip-or-domain>(:<port>)` |
|
| 2 | url | Yes (port default `80`) | http url to the api.`http(s)://<ip-or-domain>(:<port>)` |
|
||||||
| 3 | num_blocks | No (default `10`) | Number of blocks the api can drift before reported `down` |
|
| 3 | num_blocks | No (default `10`) | Number of blocks the api can drift before reported `down` |
|
||||||
| 4 | host | No (default from `url`) | Value to send in the `HTTP Host Header` to the API |
|
| 4 | host | No (default from `url`) | Value to send in the `HTTP Host Header` to the API |
|
||||||
|
|
||||||
|
|
@ -46,7 +48,7 @@ The api can respond with exactly one `status code`.
|
||||||
See [HAproxy documentation](https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#5.2-agent-check) for more information
|
See [HAproxy documentation](https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#5.2-agent-check) for more information
|
||||||
|
|
||||||
| code | Description |
|
| code | Description |
|
||||||
| --------- | ---------------------------------------------------------- |
|
| ----------- | ------------------------------------------------------------ |
|
||||||
| `up` | Api is healthy |
|
| `up` | Api is healthy |
|
||||||
| `down` | Api is not healthy |
|
| `down` | Api is not healthy |
|
||||||
| `fail` | The program failed to read the status from the api. |
|
| `fail` | The program failed to read the status from the api. |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue