Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [hono-dev] Metrics for processing command responses

I have read through the Micrometer documentation again. Based on the
recommendations for naming tags [1], I am no longer sure that we are on the right
track. Using the same metric name for tracking all types of messages (telemetry,
event, command one-way, command request, command response) doesn't feel right to
me anymore. FMPOV the aggregated value of "hono.messages.processed" doesn't make
any sense without further drilling down, don't you think?

based on the advice from the docs, it seems more reasonable to me to use
something like

Telemetry metrics:

"hono.messages", type = "telemetry"
                 status = "processed" / "undeliverable"
                 ttd = "none" / "expired" / "command"
"hono.messages.payload", type = "telemetry"

Event metrics:

"hono.messages", type = "event"
                 status = "processed" / "undeliverable"
                 ttd = "none" / "expired" / "command"
"hono.messages.payload" type
= "event"


Command metrics:

"hono.command", direction = "one-way" / "request" / "response"
                status = "processed" / "undeliverable"
"hono.command.payload"  direction = "one-way" / "request" / "response"

WDYT?

[1] https://micrometer.io/docs/concepts#_tag_naming


On Wed, 2018-12-12 at 10:16 +0000, Kalidass Kartheeswaran (INST/ECS4) wrote:
> Thanks for the valuable feedbacks which shaped the below metrics. I will create
> an issue in Github for these metrics.
> 
> one-way command:   "hono.messages.processed"  type = "command", direction =
> "one-way"
> command request message: "hono.messages.processed"  type = "command", direction
> = "request"
> command response message: "hono.messages.processed"  type = "command",
> direction = "response"
> 
> command payload metrics:
> ------------------------------------
> one-way command:   "hono.messages.processed.payload"  type = "command",
> direction = "one-way"
> command request message: " hono.messages.processed.payload"  type = "command",
> direction = "request"
> command response message: " hono.messages.processed.payload"  type = "command",
> direction = "response"
> 
> 
> Mit freundlichen Grüßen / Best Regards
> 
> Kartheeswaran Kalidass
> 
> 

Back to the top