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>
This commit is contained in:
Gleb Natapov
2016-02-04 10:34:52 +02:00
committed by Avi Kivity
parent a9e4afd8d2
commit 049ae37d08

View File

@@ -338,8 +338,8 @@ storage_proxy::storage_proxy(distributed<database>& db) : _db(db) {
_collectd_registrations = std::make_unique<scollectd::registrations>(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