diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-03-01 06:51:54 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-03-01 17:02:23 +0000 |
commit | 92d9f209733942dfb20db236712b88ecd3762091 (patch) | |
tree | af8547900e88124e813ed872451e167675fcd099 /storage | |
parent | f2e5ba70fcacd7dfc6d5688479e220c975d26f58 (diff) |
Always run the snapshot hooks when forcing a metrics update.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/common/statusmetricconsumer.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/storage/src/vespa/storage/common/statusmetricconsumer.cpp b/storage/src/vespa/storage/common/statusmetricconsumer.cpp index e23400063d4..67c7d375910 100644 --- a/storage/src/vespa/storage/common/statusmetricconsumer.cpp +++ b/storage/src/vespa/storage/common/statusmetricconsumer.cpp @@ -51,11 +51,7 @@ bool StatusMetricConsumer::reportStatus(std::ostream& out, const framework::HttpUrlPath& path) const { - // snapshot metrics too, if callsnapshothooks is set to 1. - bool updateSnapshotHooks = path.get("callsnapshothooks", 0) == 1; - LOG(debug, "Updating metrics ahead of status page view%s", - updateSnapshotHooks ? ", calling snapshot hooks too" : "."); - _manager.updateMetrics(updateSnapshotHooks); + _manager.updateMetrics(); vespalib::system_time currentTime = _component.getClock().getSystemTime(); bool json = (path.getAttribute("format") == "json"); |