Adding Elasticsearch aggregation keys

I want to aggregate the CPU values of the PODs in the group. However, if the aggregation API is based on the POD, which POD is shown in the Key, but it is not known which group the POD belongs to.

Is there a way to include a group in the tally? I want to know which POD belongs to which group.
ex) In the example below, the group information is unknown.

"buckets": [
{
    "key": "myPod",
    "doc_count": 1,
    "1" : {
        "value" : 5
    }
}]

Is the group information in each of your events?

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