Uptime Metric - Recreate Visualization

Hello,

How can I recreate this in a custom dashboard:
image

Using Heartbeat/Synthetics data.
I can't seem to make the Metric visualization be dynamic for text or keywords.

Not so easy.....

Add a field to the Data View that is numeric / long

Code

long status = 1;
if ( doc['monitor.status'].value == 'down' )
{
    status = 0;
}
emit(status)

Then create viz... metric with
last_value(monitor.status_num)
Break down by monitor.name

I don't have any down at the moment

2 Likes

@stephenb
thanks is it not possible to display "up" and "down"?

As far as I know Not in a metric which by definition works on numerics.

You could probably use table visualizations if you want text

1 Like

@stephenb
Sometimes kibana can be very limiting, thanks for the help!