Currently, I'm looping through all the labels and setting their values to 0 manually. I was wondering whether there is less error-prone way.
Context: I'm using a Prometheus Gauge to monitor the maximum number of duplicates found in my data. The data duplication check itself is triggered once on every 4 hours. When the latter happens, all labels' values are reset to 0, then every time I detect duplicates the Gauge's value for the corresponding labels is set to max(previousValue, newValue).