I've multiple VMs sending metricbeat data to multiple indices in ES. I want to make a graph which shows top 3 VMs with Highest RAM/CPU consumption and there should be thresholds and it should turn Red when it it let's say going beyond 75% and Green at all times otherwise
When you say graph, what kind of visualization do you mean? Date histogram? Data table? Guage? Pie?
Most visualizations can have split series, so you'll want to do something like split the visualization by terms, use hostname as the term, and have it ordered by max of RAM. Some of the visualization types can have conditional formatting to illustrate their thresholds with colors.
It sounds like the guage visualization would be a good one for you.
Have you looked at the built-in metricbeat dashboards? Out of the box, you'd get a Data Table visualization that can show you at least the first part of what you're asking:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.