Skip to content

Expose Athenz client metrics in a simple way #6423

@ikhoon

Description

@ikhoon

Although it is possible to expose the metrics of Athenz clients internally used in ZtsBaseClient through configureClientFactory and configureWebClient, the process is not straightforward.

ZtsBaseClient
    .builder("...")
    .configureClientFactory(builder -> builder.meterRegistry(meterRegistry))
    .configureWebClient(builder -> builder.decorator(MetricCollectingClient.newDecorator(MeterIdPrefixFunction.ofDefault("xxx")))

I propose adding a new API to configure metrics more declaratively.

ZtsBaseClient
    .builder("...")
    .enableMetrics(meterRegistry, MeterIdPrefixFunction.ofDefault(...))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions