From 049ae37d08f8f997b439ed8b23d101ac77bf293c Mon Sep 17 00:00:00 2001 From: Gleb Natapov Date: Thu, 4 Feb 2016 10:34:52 +0200 Subject: [PATCH] storage_proxy: change collectd to show foreground mutation instead of overall mutation count It is much easier to see what is going on this way otherwise graphs for bg mutations and overall mutations are very close with usual scaling for many workloads. Message-Id: <20160204083452.GH6705@scylladb.com> --- service/storage_proxy.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/storage_proxy.cc b/service/storage_proxy.cc index cc82e227ed..1d85940d7f 100644 --- a/service/storage_proxy.cc +++ b/service/storage_proxy.cc @@ -338,8 +338,8 @@ storage_proxy::storage_proxy(distributed& db) : _db(db) { _collectd_registrations = std::make_unique(scollectd::registrations({ scollectd::add_polled_metric(scollectd::type_instance_id("storage_proxy" , scollectd::per_cpu_plugin_instance - , "queue_length", "writes") - , scollectd::make_typed(scollectd::data_type::GAUGE, [this] { return _response_handlers.size(); }) + , "queue_length", "foreground writes") + , scollectd::make_typed(scollectd::data_type::GAUGE, [this] { return _response_handlers.size() - _stats.background_writes; }) ), scollectd::add_polled_metric(scollectd::type_instance_id("storage_proxy" , scollectd::per_cpu_plugin_instance