17 #ifndef __MASTER_ALLOCATOR_MESOS_METRICS_HPP__ 18 #define __MASTER_ALLOCATOR_MESOS_METRICS_HPP__ 42 class HierarchicalAllocatorProcess;
48 explicit QuotaMetrics(
const std::string& suffix_) : suffix(suffix_){};
51 template <
class Quantities>
52 void update(
const std::string& role,
const Quantities& quantities);
55 const std::string suffix;
70 void updateQuota(
const std::string& role,
const Quota& quota);
74 void addRole(
const std::string& role);
75 void removeRole(
const std::string& role);
129 const FrameworkInfo& _frameworkInfo,
130 const bool _publishPerFrameworkMetrics);
134 void reviveRole(
const std::string& role);
135 void suppressRole(
const std::string& role);
139 void addSubscribedRole(
const std::string& role);
140 void removeSubscribedRole(
const std::string& role);
143 template <
typename T>
void addMetric(
const T& metric);
144 template <
typename T>
void removeMetric(
const T& metric);
160 #endif // __MASTER_ALLOCATOR_MESOS_METRICS_HPP__ const process::PID< HierarchicalAllocatorProcess > allocator
Definition: metrics.hpp:77
std::vector< process::metrics::PullGauge > resources_total
Definition: metrics.hpp:97
process::metrics::Counter allocation_runs
Definition: metrics.hpp:88
hashmap< std::string, hashmap< std::string, process::metrics::PushGauge > > quota_limit
Definition: metrics.hpp:112
std::vector< process::metrics::PullGauge > resources_offered_or_allocated
Definition: metrics.hpp:100
Definition: master.hpp:27
Definition: resource_quantities.hpp:63
process::metrics::Timer< Milliseconds > allocation_run_latency
Definition: metrics.hpp:94
hashmap< std::string, process::metrics::PullGauge > offer_filters_active
Definition: metrics.hpp:115
const bool publishPerFrameworkMetrics
Definition: metrics.hpp:148
const FrameworkInfo frameworkInfo
Definition: metrics.hpp:146
Definition: counter.hpp:26
Definition: hashmap.hpp:38
Definition: metrics.hpp:126
Definition: pull_gauge.hpp:46
Definition: hierarchical.hpp:546
hashmap< std::string, process::metrics::PushGauge > suppressed
Definition: metrics.hpp:151
hashmap< std::string, hashmap< std::string, process::metrics::PullGauge > > quota_allocated
Definition: metrics.hpp:104
QuotaMetrics(const std::string &suffix_)
Definition: metrics.hpp:48
process::metrics::Timer< Milliseconds > allocation_run
Definition: metrics.hpp:91
A "process identifier" used to uniquely identify a process when dispatching messages.
Definition: pid.hpp:289
Definition: attributes.hpp:24
process::metrics::PullGauge event_queue_dispatches
Definition: metrics.hpp:80
hashmap< std::string, hashmap< std::string, process::metrics::PushGauge > > quota_guarantee
Definition: metrics.hpp:108
Definition: metrics.hpp:64
void update(const std::string &role, const Quantities &quantities)
process::metrics::PullGauge event_queue_dispatches_
Definition: metrics.hpp:85
Definition: metrics.hpp:45