kea-exporter icon indicating copy to clipboard operation
kea-exporter copied to clipboard

packet statistics should use a counter instead of gauge

Open M0NsTeRRR opened this issue 11 months ago • 2 comments

Packet statistics currently use a gauge, but they should use a counter instead. Kea only increments values for packet statistics since there's a command to reset them to 0.

Kea reset command Prometheus documentation

M0NsTeRRR avatar Mar 23 '24 23:03 M0NsTeRRR

Is there other metrics that also could be represented by a counter? Maybe there are some other metrics that could benefit using a counter instead.

@M0NsTeRRR do you want to work on this and provide some code?

Qwiko avatar Mar 24 '24 10:03 Qwiko

I let you review my linked PR @Qwiko :)

M0NsTeRRR avatar Mar 24 '24 16:03 M0NsTeRRR