Hi all
I have a few infinity data sources that call out to external API’s. One of the calls returns a list of servers, and if they are Up or Down with a boolean value.
I am displaying that data in a table right now, but I would like a more colorful representation.
I grabbed the Status Panel visualization, but cannot figure out how to represent my data.
I could just use overrides with a basic table, but I feel like there should be a nicer way to do this.
Does grafana have a way to display a status page? Perhaps with a traffic light style, or just a series of Red or Green squares with the server name as the text?
I feel like this should be a very common thing to show, but I dont see any examples out there!
Thanks!
welcome @bretthowells to forum
please share a sample of the json data coming back from the API
{
"count": 2,
"results": [
{
"pk": 4103359,
"name": "Service: Routes",
"created_at": "2024-10-03T13:37:03.503988Z",
"modified_at": "2024-12-10T19:10:30.783209Z",
"is_under_maintenance": true,
"state_is_up": true
},
{
"pk": 4103358,
"name": "Service: Api",
"created_at": "2024-10-03T13:37:03.503988Z",
"modified_at": "2024-12-10T19:10:30.783209Z",
"is_under_maintenance": true,
"state_is_up": true
},
]
}
from this data which fields do you want to see in plugin, not sure what you mean by Status page
I wanted to display the data like this status page :
Basically the test name on one side, and a Red/Green box or image or whatever to represent up/down. The idea is that anyone can look at this with a glance and know that everything is up as quick as possible.
close enough (using emojis for the
and X) ? otherwise you will need to use some other plugin that does the layout you want
That looks pretty good!
I’ve tried a bunch of plugins, but nothing seems to do what I want. Ideas welcome!
business text with html and maybe using bootstrap or a simple css
loop over your data and your basic html stuff
1 Like
Can you post that HTML for me please?
So here is my query and the output from just grabbing the JSON :
If I try and input some HTML there:
I get a blank list with no data.
Just to test that the #each works, I tried :
And that shows :
I am thinking there is something up with how I am parsing out the fields.
Looks like you might not have read the docu