mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
avoid increment redis count
This commit is contained in:
parent
5dc4c10a6d
commit
f5c1366b9a
1 changed files with 5 additions and 0 deletions
|
|
@ -405,6 +405,11 @@ class Instances:
|
|||
metrics[key] = value
|
||||
continue
|
||||
|
||||
# Some value are the same for all instances, we don't need to update them
|
||||
# Example redis_nb_keys count
|
||||
if key in ["redis_nb_keys"]:
|
||||
continue
|
||||
|
||||
# Case value is number, add it to the existing value
|
||||
if isinstance(value, (int, float)):
|
||||
metrics[key] += value
|
||||
|
|
|
|||
Loading…
Reference in a new issue