summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/storageserver
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-05-04 07:51:28 +0000
committergjoranv <gv@verizonmedia.com>2022-06-08 11:45:21 +0200
commit12aeb0727e73905bc25a273859824c39ea33d135 (patch)
tree7c0ceb565fcef8d04e56a40711e557b7398674b8 /storage/src/tests/storageserver
parent4660644a541e4b9d1ec98de02db0c406c5f4dc30 (diff)
Remove '.sum' form vds sum metrics.
Remove '.sum' from metric names for storage node and also remove the average metrics for the same. Remove '.sum' from distributor metrics set and remove distributor average metrics. GC '.sum' from distributor metric names. Remove '.alldisks' from metric names and update tests. GC '.alldisks' from filestor metrics.
Diffstat (limited to 'storage/src/tests/storageserver')
-rw-r--r--storage/src/tests/storageserver/statereportertest.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/storage/src/tests/storageserver/statereportertest.cpp b/storage/src/tests/storageserver/statereportertest.cpp
index 77192d24786..09df5063989 100644
--- a/storage/src/tests/storageserver/statereportertest.cpp
+++ b/storage/src/tests/storageserver/statereportertest.cpp
@@ -150,13 +150,11 @@ vespalib::Slime slime; \
for (size_t j=0; j<metricCount; j++) { \
const vespalib::string name = slime.get()["metrics"]["values"][j]["name"] \
.asString().make_string(); \
- if (name.compare("vds.filestor.alldisks.allthreads." \
- "get.sum.count") == 0) \
+ if (name.compare("vds.filestor.allthreads.get.count") == 0) \
{ \
getCount = slime.get()["metrics"]["values"][j]["values"]["count"] \
.asDouble(); \
- } else if (name.compare("vds.filestor.alldisks.allthreads." \
- "put.sum.count") == 0) \
+ } else if (name.compare("vds.filestor.allthreads.put.count") == 0) \
{ \
putCount = slime.get()["metrics"]["values"][j]["values"]["count"] \
.asDouble(); \
@@ -217,8 +215,7 @@ TEST_F(StateReporterTest, report_health) {
}
TEST_F(StateReporterTest, report_metrics) {
- FileStorDiskMetrics& disk0(*_filestorMetrics->disk);
- FileStorThreadMetrics& thread0(*disk0.threads[0]);
+ FileStorThreadMetrics& thread0(*_filestorMetrics->threads[0]);
LOG(debug, "Adding to get metric");