mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-14 21:36:35 +03:00
Changed post operation guage, as sometimes statsd can "skip" metrics
and graph holds invalid counters
This commit is contained in:
parent
6a4bf14ea6
commit
9bc6c6154b
|
@ -64,7 +64,7 @@ class Storage:
|
|||
:return: None
|
||||
"""
|
||||
key = "%s.sync.%s.queue" % (config.STATSD_PREFIX, import_key)
|
||||
statsd.gauge(key, -batch_size, delta=True)
|
||||
statsd.gauge(key, self.operations_count(import_key), delta=True)
|
||||
|
||||
def operations_count(self, import_key, **kwargs):
|
||||
# type: (str, **dict) -> int
|
||||
|
|
Loading…
Reference in New Issue
Block a user