badges.shields
always returns label: gatus
instead of endpoint name.
#737
Labels
bug
Something isn't working
Describe the bug
Working with Gatus to make badges, and no matter which endpoint I give it such as
/api/v1/endpoints/internal_truenas/health/badge.shields
the label is returned asgatus
instead of the endpoint name (truenas
in this case).What do you see?
Label is always returned as
gatus
. I tried different groups and different endpoints.What do you expect to see?
I was expecting the label to equal to the value of the endpoint. Given an endpoint such as:
Then I would expect
"label:":"truenas"
.List the steps that must be taken to reproduce this issue
Look at the raw json returned from various endpoints, IE:
https://status.mydomain.com/api/v1/endpoints/internal_truenas/health/badge.svg
results in:When using this with
shields.io
, such ashttps://img.shields.io/endpoint?url=https://status.mydomain.com/api/v1/endpoints/internal_truenas/health/badge.shields
, it thus renders the wrong endpoint name:Version
5.9.0
Additional information
If I try to supply an alternate label using
&label=TrueNAS Storage
it doesn't work (stops at the
) ... another bug?However if I use
&label=TrueNAS Storage
or&label=TrueNAS%20Storage
it does work:The text was updated successfully, but these errors were encountered: