# Uptime donut visualization monitor in canvas

**URL:** <https://discuss.elastic.co/t/uptime-donut-visualization-monitor-in-canvas/305542>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [May 24, 2022, 8:48pm UTC](https://discuss.elastic.co/t/uptime-donut-visualization-monitor-in-canvas/305542 "2022-05-24T20:48:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dannie-ml](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dannie-ml/32/99559_2.png) [@dannie-ml](https://discuss.elastic.co/u/dannie-ml)\
**Post date:** [May 24, 2022, 8:48pm UTC](https://discuss.elastic.co/t/uptime-donut-visualization-monitor-in-canvas/305542/1 "2022-05-24T20:48:47Z")

</div>

I want to retrieve something like we have in Uptime screen:  
 ![Captura de pantalla 2022-05-24 154121](https://us1.discourse-cdn.com/elastic/original/3X/b/f/bfcefb2b5c7dabef678b8e032fbc59384ded7550.png)

I want to replicate in canvas in something like a wheel progress chart.  
I'm thinking firstly with 3 querys in the expression editor:

based on the image:  
1 query to count the monitor.id we have 39 monitors  
2 query to count the monitor.status when is 'up' we have 36  
3 query to count the monitor.status when is 'down' we have 3

then construct in the expressino editor the query to get the percentage based on some variables  
but is there a query expression that i missing? because when i get the percentage manually i get the correct percentage according to the image attached, but when i get those querys i get distinct numbers in the event of the monitor.status 'down' and 'up'. There is a discrapance between the monitor.status querys and the numbers in the image from the uptime screen

Any ideas? or other way to get this in canvas?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 21, 2022, 8:48pm UTC](https://discuss.elastic.co/t/uptime-donut-visualization-monitor-in-canvas/305542/2 "2022-06-21T20:48:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
