(Version >= 1.16.0)
Description
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
Badge Type Options
Status badge
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 |
Ping, uptime, avg-response and response badge
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:
Badge Duration at ping, uptime and avg-response
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 |
Certificate Expire badge
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
Badge Styles
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 |
Installation & Configuration
Features
- Reset Password via CLI
- Status Page
- Notification Methods
- Badge
- How to Monitor Docker Containers
- Maintenance
- 3rd Party Addons/Apps
- API Keys
Network
Integrations
Development & Contributions
- CONTRIBUTING Rules & Guide
- How to Translate
- Setup Development Environment
- Test Pull Requests
- Development Side Notes