commons: add a way to reset gauges and counters

Acked-by: Gerd Behrmann
Target: master
Require-book: no
Require-notes: no