Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[hono-dev] Metric names/tags

Hi list,

after the discussion we had around the names and tags of the metrics we want to
use for tracking the frequency and payload size of telemetry, event and command
messages, I have reviewed the tags that we have defined in the Metrics API [1].

I have some concerns regrading the "protocol" tag. For the time being we only
have a single protocol adapter for each of the transport protocols and thus the
value of the "protocol" tag also indicates the specific type of protocol adapter
that has reported the value. However, assuming that there will be multiple
(custom) protocol adapters that make use of e.g. HTTP as the transport protocol,
my feeling is that the "protocol" tag is not really appropriate to determine the
specific protocol adapter.

Instead, I propose that we use "component-name" to contain the name of the
protocol adapter or service reporting the value.

I would therefore like to propose the following changes:

Common Tags

- rename "component" to "component-type": values are ["service", "adapter"]
- add "component-name": value is the name of the component, e.g. "http",
                        "LoRa", "mqtt", "PPMP" etc.

Adapter Tags

- remove "protocol" tag

This way, we could still drill down along component type as well as along the
specific adapter type but would prevent the ambiguity regarding the transport
protocol name(s).

WDYT?


[1] https://www.eclipse.org/hono/api/metrics/
-- 
Mit freundlichen Grüßen / Best regards

Kai Hudalla
Chief Software Architect

Bosch Software Innovations GmbH
Ullsteinstr. 128
12109 Berlin
GERMANY
www.bosch-si.com

Registered Office: Berlin, Registration Court: Amtsgericht Charlottenburg; HRB
148411 B
Chairman of the Supervisory Board: Dr.-Ing. Thorsten Lücke; Managing Directors:
Dr. Stefan Ferber, Michael Hahn, Dr. Aleksandar Mitrovic


Back to the top