Skip to content

ExecutorServiceMetrics should allow customization of metric name #1919

@anuraaga

Description

@anuraaga

Unlike many JVM metrics, ExecutorService is actually instantiated by users and there may be many in an app. If the metric id can't be customised, multiple executors with different tags will fail to register due to Prometheus restrictions.

Is it ok to add an ID prefix to the factories for executor metrics? Happy to make the change if so but one thing that comes to mind is given there are already so many factories, if every one had a prefix version it would be a lot of new methods, wonder what a good practice in this codebase would be for that.

More context in line/armeria#2605

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions