Memory and CPU on one graph or gauge


I am trying to create a custom dashboard for monitoring system metrics using metric beat.

I want to show both memory and cpu usage on one graph or gauge. Can you please tell me possible solution.

@syedsfayaz using the "Gauge" visualization, each metric gets it's own gauge, so these will not appear on the same gauge. It's possible to have two gauges, one for CPU and one for memory, like the following:

The gauge visualization is currently built around one metric per gauge. Do you have an example of how you'd want multiple metric to appear on the same gauge? If so, creating an feature request for this would help us prioritize adding this functionality.

@Brandon_Kobel Thanks for your reply. This looks good and I can use it.

I want to create a dashboard with similar gauges for different hosts. Right now I'm creating one index "metricbeat*" for data coming from different servers. How can I clone same gauge and show data for different hosts. Attached image for reference.

You can use the "Buckets" section of the visualization definition to have gauges displayed for every host, but it's not grouped by "host":

Have you looked into using the Infrastructure application?

So, if I can't add different gauge showing data from different servers. I know I can configure them if I use different index name for every metricbeats data I am getting. But @Christian_Dahlqvist suggested its not the correct way i doing it.

If you have a hard-coded list of hosts which you'd like to see the gauges for, it's possible to add a filter to a Visualization and then save it and add it to a dashboard:

You could then duplicate the Visualization for each of the different hosts, but that's not really a maintainable solution.

I agree its very difficult to maintain this. Do you suggest any solution, I can filter data by as well.

I see this in the metricbeats.yml. Is there a way I can utilize this putting in an environment name and filtering dashboard by env name.
Is there a way in kibana I can create series of Gauges for a list of servers in an environment?

# The name of the shipper that publishes the network data. It can be used to group
# all the transactions sent by a single shipper in the web interface.

# The tags of the shipper are included in their own field with each
# transaction published.
#tags: ["service-X", "web-tier"]

# Optional fields that you can specify to add additional information to the
# output.
#  env: staging

Is there a way in kibana I can create series of Gauges for a list of servers in an environment?

Even with the Dashboard filtering by environment, we're still going to want to list the gauges for every host within that environment.

I'm afraid the best we're going to get without resorting to submitting a feature request, is to create a Visualization which will show the Memory gauge for all hosts, and to create another Visualization which will show the CPU gauge for all hosts, and add them both to the Dashboard side-by-side or stacked-vertically so that the hosts align with each other.

@Brandon_Kobel So you mean I will have to create individual visualization for every host name and add it on a dashboard.

No, that's not what I was recommending. If you use a Visualization configuration similar to the following, it will display a Memory gauge for each host:

You can then do the same for CPU:

And then you can add both of these Visualizations to a dashboard.

Thank you. Let me try it.

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