Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I show a percentage as a Metric in Kibana?

I have data that has this format:

{
    "area": "cats",
    "healthy": true,
    "timestamp": "2016-02-12T14:00:00.601000",
}

{
    "area": "dogs",
    "healthy": false,
    "timestamp": "2016-02-12T15:00:00.601000",
}

As you can see, 'healthy' can be true or false. I want to show the percentage of all records where healthy:true as a Metric in Kibana. I've been trying for several days with no success. It feels like it should be incredibly easy, especially as the pie chart displays it when I hover over it.

enter image description here

Can you help?

Thanks, Andy

like image 692
Return_Of_The_Archons Avatar asked Feb 12 '16 14:02

Return_Of_The_Archons


1 Answers

You actually can't show percentage in Kibana. There is a feature request in Kibana (https://github.com/elastic/kibana/issues/2284).

But for now, you have two options:

  • stick to pie chart, where you can view percentage
  • implement a data table, where you can see the count of each value.
like image 159
banuj Avatar answered Oct 29 '22 18:10

banuj