// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include #include #include #include namespace proton { struct ExecutorMetrics : metrics::MetricSet { metrics::LongCountMetric accepted; metrics::LongCountMetric rejected; metrics::LongCountMetric wakeupCount; metrics::DoubleValueMetric util; metrics::DoubleValueMetric saturation; metrics::LongAverageMetric queueSize; void update(const vespalib::ExecutorStats &stats); ExecutorMetrics(const std::string &name, metrics::MetricSet *parent); ~ExecutorMetrics(); }; } // namespace proton