Query/Regex to show the latest k8s deployment, i.e., exclude the old ones

Hi Grafana Community,

Although this seems like a trivial question, I am quite sure it is not …

Currently, I have K8s to deploy my microservices, and since I need to re-deploy the microservices, I am trying to filter only the latest deployment when I am selecting my server:

Take a look at the following snippet that I see all the old deployments (Please note that the numbers/letters after the telegraf are hash values).

However, I would like to filter and see only the latest deployment.

I have tried to create a query but I am not sure how to build that.

Any guidance or assistance will be greatly appreciated.


Hi everyone,

Can someone give me a help on this one?