|
|
@@ -14,9 +14,95 @@
|
|
|
%% limitations under the License.
|
|
|
%%--------------------------------------------------------------------
|
|
|
|
|
|
+-define(EMPTY_METRICS_V1,
|
|
|
+ ?METRICS_V1(
|
|
|
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
|
|
+ )
|
|
|
+).
|
|
|
+
|
|
|
+-define(METRICS_V1(
|
|
|
+ Dropped,
|
|
|
+ DroppedOther,
|
|
|
+ DroppedExpired,
|
|
|
+ DroppedQueueFull,
|
|
|
+ DroppedResourceNotFound,
|
|
|
+ DroppedResourceStopped,
|
|
|
+ Matched,
|
|
|
+ Queued,
|
|
|
+ Retried,
|
|
|
+ LateReply,
|
|
|
+ SentFailed,
|
|
|
+ SentInflight,
|
|
|
+ SentSucc,
|
|
|
+ RATE,
|
|
|
+ RATE_5,
|
|
|
+ RATE_MAX,
|
|
|
+ Rcvd
|
|
|
+),
|
|
|
+ #{
|
|
|
+ 'dropped' => Dropped,
|
|
|
+ 'dropped.other' => DroppedOther,
|
|
|
+ 'dropped.expired' => DroppedExpired,
|
|
|
+ 'dropped.queue_full' => DroppedQueueFull,
|
|
|
+ 'dropped.resource_not_found' => DroppedResourceNotFound,
|
|
|
+ 'dropped.resource_stopped' => DroppedResourceStopped,
|
|
|
+ 'matched' => Matched,
|
|
|
+ 'queuing' => Queued,
|
|
|
+ 'retried' => Retried,
|
|
|
+ 'late_reply' => LateReply,
|
|
|
+ 'failed' => SentFailed,
|
|
|
+ 'inflight' => SentInflight,
|
|
|
+ 'success' => SentSucc,
|
|
|
+ rate => RATE,
|
|
|
+ rate_last5m => RATE_5,
|
|
|
+ rate_max => RATE_MAX,
|
|
|
+ received => Rcvd
|
|
|
+ }
|
|
|
+).
|
|
|
+
|
|
|
+-define(metrics_v1(
|
|
|
+ Dropped,
|
|
|
+ DroppedOther,
|
|
|
+ DroppedExpired,
|
|
|
+ DroppedQueueFull,
|
|
|
+ DroppedResourceNotFound,
|
|
|
+ DroppedResourceStopped,
|
|
|
+ Matched,
|
|
|
+ Queued,
|
|
|
+ Retried,
|
|
|
+ LateReply,
|
|
|
+ SentFailed,
|
|
|
+ SentInflight,
|
|
|
+ SentSucc,
|
|
|
+ RATE,
|
|
|
+ RATE_5,
|
|
|
+ RATE_MAX,
|
|
|
+ Rcvd
|
|
|
+),
|
|
|
+ #{
|
|
|
+ 'dropped' := Dropped,
|
|
|
+ 'dropped.other' := DroppedOther,
|
|
|
+ 'dropped.expired' := DroppedExpired,
|
|
|
+ 'dropped.queue_full' := DroppedQueueFull,
|
|
|
+ 'dropped.resource_not_found' := DroppedResourceNotFound,
|
|
|
+ 'dropped.resource_stopped' := DroppedResourceStopped,
|
|
|
+ 'matched' := Matched,
|
|
|
+ 'queuing' := Queued,
|
|
|
+ 'retried' := Retried,
|
|
|
+ 'late_reply' := LateReply,
|
|
|
+ 'failed' := SentFailed,
|
|
|
+ 'inflight' := SentInflight,
|
|
|
+ 'success' := SentSucc,
|
|
|
+ rate := RATE,
|
|
|
+ rate_last5m := RATE_5,
|
|
|
+ rate_max := RATE_MAX,
|
|
|
+ received := Rcvd
|
|
|
+ }
|
|
|
+).
|
|
|
+
|
|
|
-define(EMPTY_METRICS,
|
|
|
?METRICS(
|
|
|
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
|
|
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
|
|
)
|
|
|
).
|
|
|
|
|
|
@@ -29,6 +115,7 @@
|
|
|
DroppedResourceStopped,
|
|
|
Matched,
|
|
|
Queued,
|
|
|
+ QueuedBytes,
|
|
|
Retried,
|
|
|
LateReply,
|
|
|
SentFailed,
|
|
|
@@ -48,6 +135,7 @@
|
|
|
'dropped.resource_stopped' => DroppedResourceStopped,
|
|
|
'matched' => Matched,
|
|
|
'queuing' => Queued,
|
|
|
+ 'queuing_bytes' => QueuedBytes,
|
|
|
'retried' => Retried,
|
|
|
'late_reply' => LateReply,
|
|
|
'failed' => SentFailed,
|
|
|
@@ -69,6 +157,7 @@
|
|
|
DroppedResourceStopped,
|
|
|
Matched,
|
|
|
Queued,
|
|
|
+ QueuedBytes,
|
|
|
Retried,
|
|
|
LateReply,
|
|
|
SentFailed,
|
|
|
@@ -88,6 +177,7 @@
|
|
|
'dropped.resource_stopped' := DroppedResourceStopped,
|
|
|
'matched' := Matched,
|
|
|
'queuing' := Queued,
|
|
|
+ 'queuing_bytes' := QueuedBytes,
|
|
|
'retried' := Retried,
|
|
|
'late_reply' := LateReply,
|
|
|
'failed' := SentFailed,
|