I want to show thoughput of my message metrics grouping by server:
I am able to achieve this for one server by using:
sum(messages_sent_total)-sum(messages_sent_total offset 1m)
But I want to achieve this for multiple servers using:
sum by (instance) (sum(messages_sent_total)-sum(messages_sent_total offset 1m))
But ‘sum by’ not doing anything here.
Can anyone suggest proper way to achieve this.