create a chart step by step with Kibana 4

Posted November 11, 2015 2k views
Arch LinuxDocker

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 ?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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:

by Mitchell Anicas
The Kibana interface is divided into four sections: Discover, Visualize, Dashboard, and Settings. In this tutorial, we will go over the basics of each section, and demonstrate how each section can be used.