You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[#1149] Use all tags when reporting metrics to PrometheusMeterRegistry.
The protocol adapters now always provide values for all tags when
reporting telemetry messages.
Fixes#1149
Signed-off-by: Kai Hudalla <[email protected]>
|*direction*|`one-way`, `request`, `response`| The direction in which a Command & Control message is being sent:<br>`one-way` indicates a command sent to a device for which the sending application doesn't expect to receive a response.<br>`request` indicates a command request message sent to a device.<br>`response` indicates a command response received from a device. |
61
-
|*qos*|`0`, `1`| The quality of service used for a telemetry or event message.<br>`0` indicates *at most once*,<br>`1` indicates *at least once*delivery semantics.<br>This tag will be omitted if the quality of service cannot be determined. |
61
+
|*qos*|`0`, `1`, `unknown`| The quality of service used for a telemetry or event message.<br>`0` indicates *at most once*,<br>`1` indicates *at least once*and<br>`none` indicates unknown delivery semantics. |
62
62
|*status*|`forwarded`, `unprocessable`, `undeliverable`| The processing status of a message.<br>`forwarded` indicates that the message has been forwarded to a downstream consumer<br>`unprocessable` indicates that the message has not been processed not forwarded, e.g. because the message was malformed<br>`undeliverable` indicates that the message could not be forwarded, e.g. because there is no downstream consumer or due to an infrastructure problem |
63
63
|*tenant*|*string*| The identifier of the tenant that the metric is being reported for |
64
-
|*ttd*|`command`, `expired`| A status indicating the outcome of processing a TTD value contained in a message received from a device.<br>`command` indicates that a command for the device has been included in the response to the device's request for uploading the message.<br>`expired` indicates that a response without a command has been sent to the device<br>Note that this tag is only used by protocol adapters which use a request/response based transport protocol like HTTP. The tag will be omitted if the device did not specify a TTD value in its message. |
64
+
|*ttd*|`command`, `expired`, `none`| A status indicating the outcome of processing a TTD value contained in a message received from a device.<br>`command` indicates that a command for the device has been included in the response to the device's request for uploading the message.<br>`expired` indicates that a response without a command has been sent to the device.<br>`none` indicates that either no TTD value has been specified by the device or that the protocol adapter does not support it. |
65
65
|*type*|`telemetry`, `event`| The type of (downstream) message that the metric is being reported for. |
66
66
67
67
Metrics provided by the protocol adapters are:
@@ -72,11 +72,9 @@ Metrics provided by the protocol adapters are:
72
72
|*hono.commands.payload*| DistributionSummary |*host*, *component-type*, *component-name*, *tenant*, *type*, *status*, *direction*| The number of bytes conveyed in the payload of a command message. |
73
73
|*hono.connections.authenticated*| Gauge |*host*, *component-type*, *component-name*, *tenant*| Current number of connected, authenticated devices. <br/> **NB** This metric is only supported by protocol adapters that maintain *connection state* with authenticated devices. In particular, the HTTP adapter does not support this metric. |
74
74
|*hono.connections.unauthenticated*| Gauge |*host*, *component-type*, *component-name*| Current number of connected, unauthenticated devices. <br/> **NB** This metric is only supported by protocol adapters that maintain *connection state* with authenticated devices. In particular, the HTTP adapter does not support this metric. |
75
-
|*hono.messages.received*| Timer |*host*, *component-type*, *component-name*, *tenant*, *type*, *status*, \[*qos*,\]\[*ttd*\]| The time it took to process a message conveying telemetry data or an event. |
75
+
|*hono.messages.received*| Timer |*host*, *component-type*, *component-name*, *tenant*, *type*, *status*, *qos*,*ttd*| The time it took to process a message conveying telemetry data or an event. |
76
76
|*hono.messages.payload*| DistributionSummary |*host*, *component-type*, *component-name*, *tenant*, *type*, *status*| The number of bytes conveyed in the payload of a telemetry or event message. |
77
77
78
-
A tag name in square brackets indicates that the tag may not be used with each reported value.
79
-
80
78
### Service Metrics
81
79
82
80
Hono's service components do not report any metrics at the moment.
0 commit comments