Skip to content

Add metrics for received and send messages to starter #20

@cmdjulian

Description

@cmdjulian

Hey,

I would like to retrofit the starter with metrics. What it essentially does, is registering certain counters for the received and send messages. I would also like to tag the metrics with the topic it is published under.
I mad a small internal prototype and you could think of it like something like the following:

grafik

Using a counter for that seems well suited. I was now wondering what you would consider the best points to start it. We would need a counter within the logic for sending and for receiving to get access to the concrete topic.
As I'm unsure what are good points to start at in the code base I thought I would ask here to get a rough idea what you would suggest.
I was thinking about using some form of bean post processor, so if a user supplies it's own beans we can still gather the metrics from it.
Another idea would be to broaden the interface to force every impl to also expose some form of metrics and create a metrics collector bean conditional on such a bean and enabled metrics.

What do you think would be the best way forward?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions