Subsystem metrics reset_values should remove all redis keys

This commit is contained in:
Seth Foster 2022-06-16 16:54:37 -04:00
parent 7cbe112e4e
commit c92619a2dc
No known key found for this signature in database
GPG Key ID: 86E90D96F7184028

View File

@ -213,6 +213,8 @@ class Metrics:
m.reset_value(self.conn)
self.metrics_have_changed = True
self.conn.delete(root_key + "_lock")
for m in self.conn.scan_iter(root_key + '_instance_*'):
self.conn.delete(m)
def inc(self, field, value):
if value != 0: