micrometer-metrics/micrometer

DNS, SSL, and TCP metrics for Apache HttpClient

Closed

#1,617 opened on Oct 1, 2019

 (5 comments) (0 reactions) (1 assignee)Java (1,131 forks)batch import
enhancementhelp wantedinstrumentationmodule: micrometer-core

Repository metrics

Stars
 (4,882 stars)
PR merge metrics
 (Avg merge 1d 21h) (100 merged PRs in 30d)

Description

Add metrics for:

  1. DNS resolution time (inject custom DnsResolver, delegating to the user-provided resolver, and timing).
  2. SSL handshake time (inject SSLConnectionSocketFactory, delegating).
  3. TCP connect time (also in custom SSLConnectionSocketFactory).

Apply these on custom PoolingHttpClientConnectionManager.

Feedback suggests that DNS resolution/SSL handshake can go up dramatically in noisy neighbor situations.

Originally posted by @jkschneider in https://github.com/micrometer-metrics/micrometer/issues/533#issuecomment-446713248

Contributor guide