(Version >= 1.16.0)
status
, ping
, uptime
, avg-response
, cert-exp
and response
-badges are generated locally.
The server does this for all monitors which have been added to status pages and have thus been published.
The design is based on badge-maker aka. shields.io.
These are the endpoints that return an SVG graphic for a given (public) monitor:
Tip
We have an Badge Generator integrated which makes this configuration more interactive.
You can use said generator via:
-
navigating to a status page in edit mode
There are options to customize the status badge's appearance:
upLabel
,Default value: UpdownLabel
, Default value: DownupColor
downColor
Examples
Badge | Url |
---|---|
<kuma-url>/api/badge/<monitorId>/status?upLabel=<upLabel>&downLabel=<downLabel> |
|
<kuma-url>/api/badge/<monitorId>/status?upColor=white&downColor=black |
There are options to customize the ping, uptime, avg-response and response badge's text:
labelPrefix
label
labelSuffix
, Default: value: uptime, ping & avg-response image=h
prefix
suffix
, Default value: uptime=%
, ping, avg-response & response=ms
color
labelColor
Examples
The default uptime badge's color is based on the uptime percentage:
but can be overwritten with predefined color or any other color in HEX code:
The given time interval at Badge Duration (in hours)
has to be in 'hours', but customizing options allow for a different display:
Example
Badge | Url |
---|---|
<kuma-url>/api/badge/1/uptime/720?label=30&labelSuffix=d |
There are the same options like ping, uptime and avg-response and additional to customize the cert-exp badge's text:
upColor
downColor
warnDays
downDays
The different badge styles as defined by https://shields.io/#styles. (thx @throwabird / comment )
flat
(default)flat-square
plastic
for-the-badge
social
Example
Badge | Url |
---|---|
<kuma-url>/api/badge/<monitorId>/status?style=flat-square |