-
Notifications
You must be signed in to change notification settings - Fork 24
/
master_metrics.hpp
69 lines (51 loc) · 2.17 KB
/
master_metrics.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef __OVERLAY_MASTER_METRICS_HPP__
#define __OVERLAY_MASTER_METRICS_HPP__
#include <process/metrics/counter.hpp>
#include <process/metrics/push_gauge.hpp>
namespace mesos {
namespace modules {
namespace overlay {
namespace master {
struct Metrics
{
Metrics();
~Metrics();
// Indicates that the overlay master process is in the middle
// of recovering its state. Under normal cirumstances,
// it should be one only for a brief period of time after
// start up.
process::metrics::PushGauge recovering;
// Counts the number of IPv4 address allocation failures.
process::metrics::Counter ip_allocation_failures;
// Counts the number of IPv6 address allocation failures.
process::metrics::Counter ip6_allocation_failures;
// Counts the number of IPv4 subnet allocation failures.
process::metrics::Counter subnet_allocation_failures;
// Counts the number of IPv6 subnet allocation failures.
process::metrics::Counter subnet6_allocation_failures;
// Counts the number of network bridge allocation failures.
process::metrics::Counter bridge_allocation_failures;
// Counts the number of RegisterAgentMessage messages received.
// It is an internal metric.
process::metrics::Counter register_agent_messages_received;
// Counts the number of RegisterAgentMessage messages dropped.
// It is an internal metric.
process::metrics::Counter register_agent_messages_dropped;
// Counts the number of UpdateAgentOverlaysMessage messages sent.
// It is an internal metric.
process::metrics::Counter update_agent_overlays_messages_sent;
// Counts the number of AgentRegisteredMessage messages received.
// It is an internal metric.
process::metrics::Counter agent_registered_messages_received;
// Counts the number of AgentRegisteredMessage messages dropped.
// It is an internal metric.
process::metrics::Counter agent_registered_messages_dropped;
// Counts the number of AgentRegisteredAcknowledgement messages sent.
// It is an internal metric.
process::metrics::Counter agent_registered_acknowledgements_sent;
};
} // namespace master {
} // namespace overlay {
} // namespace modules {
} // namespace mesos {
#endif // __OVERLAY_MASTER_METRICS_HPP__