Igor Fedorov
Igor Fedorov

Reputation: 349

Vert.x metrics from multiple httpClient

I have multiple httpClient instances in one app. I want to collect metrics by each httpClient with specific label or name. Is it possible with vert.x? I saw in documentation block of collecting httpClient metrics and I want to enrich each metric with specification for client.

Upvotes: 0

Views: 201

Answers (1)

tsegismont
tsegismont

Reputation: 9128

You can provide a metrics name when creating the client:

HttpClientOptions options = new HttpClientOptions().setMetricsName("foo");

Upvotes: 2

Related Questions