mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-15 05:46:41 +03:00
Added statsd counters for ClickHouse insert batch size
This commit is contained in:
parent
6517c087a0
commit
de25af223a
|
@ -286,6 +286,7 @@ class ClickHouseMultiModel(ClickHouseModel):
|
|||
model_statsd_key = "%s.sync.%s.{0}" % (config.STATSD_PREFIX, model_cls.__name__)
|
||||
with statsd.timer(model_statsd_key.format('steps.get_insert_batch')):
|
||||
batch = model_cls.get_insert_batch(import_objects)
|
||||
statsd.incr(model_statsd_key.format('insert_batch'), len(batch))
|
||||
statsd.incr(statsd_key.format('insert_batch'), len(batch))
|
||||
return model_cls, batch
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user