create a chart step by step with Kibana 4

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 ? Thanks Regards Davide


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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: