e.g. increase(rtx_packets_total{ device_id=“$device”, client_id=“$client”}[60s])
why is the second peak small compared to the third? while it is clear from the cumulative increase that the first peak is bigger increase in values?
If the metrics you receive is a counter then use rate in PromQL to get the per second rate over the Last [1m].
If it is a gauge then you maybe need to use avg or avg_over_time.
Try it will give you good PromQL queries If you Provide the metrics and If it is a counter or a gauge, or …
If you want the retransmission of a Client to all devices use
sum by (Client) (rate(metrics[1m])