summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-05-09 15:00:40 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-05-09 15:00:40 +0000
commit4b865c0bd7f3f77ce044c96f189e2bb8adc8f1d2 (patch)
tree5f1dc4dc065c9bfdf48b9c16f0301e9818c9b8a1 /storage
parente342edc4fb7cdf8bf7b14e82cc8e26f801754cdf (diff)
Avoid filling log with unused metrics events.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/bucketdb/bucketmanagermetrics.cpp14
-rw-r--r--storage/src/vespa/storage/distributor/distributormetricsset.cpp7
2 files changed, 4 insertions, 17 deletions
diff --git a/storage/src/vespa/storage/bucketdb/bucketmanagermetrics.cpp b/storage/src/vespa/storage/bucketdb/bucketmanagermetrics.cpp
index b5efb5570bb..23acb1f344a 100644
--- a/storage/src/vespa/storage/bucketdb/bucketmanagermetrics.cpp
+++ b/storage/src/vespa/storage/bucketdb/bucketmanagermetrics.cpp
@@ -18,12 +18,7 @@ DataStoredMetrics::DataStoredMetrics(const std::string& name, metrics::MetricSet
bytes("bytes", {}, "bytes stored", this),
active("activebuckets", {}, "Number of active buckets on the node", this),
ready("readybuckets", {}, "Number of ready buckets on the node", this)
-{
- docs.logOnlyIfSet();
- bytes.logOnlyIfSet();
- active.logOnlyIfSet();
- ready.logOnlyIfSet();
-}
+{}
DataStoredMetrics::~DataStoredMetrics() = default;
@@ -34,12 +29,7 @@ BucketSpaceMetrics::BucketSpaceMetrics(const vespalib::string& space_name, metri
bytes("bytes", {}, "Bytes stored across all documents in the bucket space", this),
active_buckets("active_buckets", {}, "Number of active buckets in the bucket space", this),
ready_buckets("ready_buckets", {}, "Number of ready buckets in the bucket space", this)
-{
- docs.logOnlyIfSet();
- bytes.logOnlyIfSet();
- active_buckets.logOnlyIfSet();
- ready_buckets.logOnlyIfSet();
-}
+{}
BucketSpaceMetrics::~BucketSpaceMetrics() = default;
diff --git a/storage/src/vespa/storage/distributor/distributormetricsset.cpp b/storage/src/vespa/storage/distributor/distributormetricsset.cpp
index 70ab5229311..ab4b124d71c 100644
--- a/storage/src/vespa/storage/distributor/distributormetricsset.cpp
+++ b/storage/src/vespa/storage/distributor/distributormetricsset.cpp
@@ -52,12 +52,9 @@ DistributorMetricSet::DistributorMetricSet(const metrics::LoadTypeSet& lt)
"this distributor", this),
mutable_dbs("mutable", this),
read_only_dbs("read_only", this)
-{
- docsStored.logOnlyIfSet();
- bytesStored.logOnlyIfSet();
-}
+{}
-DistributorMetricSet::~DistributorMetricSet() { }
+DistributorMetricSet::~DistributorMetricSet() = default;
} // storage