create a chart step by step with Kibana 4

November 11, 2015 385 views
Docker Arch Linux

Hi I'm using Kibana 4 and I need to create a chart that can tell me the amount of CPU usage over a whole day, could you please tell me in detail what parameters should I put on the X and on the Y ?

1 Answer

In order to display CPU usage in Kibana, you'll need to configure topbeat to collect that information. For a full run down, see this tutorial:

Following that tutorial will leave you with a dashboard displaying a lot of different metrics about your host system, including one with CPU information. Using that as an example, we should be able to create a new chart of CPU over the full day. Set the Y-Axis to contain the CPU usage information. For this example, we'll use the percentage used system wide (cpu.system_p) with "Max" as the aggregation type, but you can do individual cores or other more fine grained queries as well. On the X-axis, use "Date Histogram" for the aggregation, @timestamp for the "Field" and "Auto" for the interval.

Kibana screenshot setting axis data

To set the time interval, click the clock icon in the upper right corner. You can select different intervals from this menu, including one day:

Kibana screenshot setting time interval

For more information on displaying data with Kibana, check out this tutorial:

The Kibana interface is divided into four sections: Discover Visualize Dashboard Settings We will go over the basics of each section, and demonstrate how each section can be used.
Have another answer? Share your knowledge.