metrics-reporter-config icon indicating copy to clipboard operation
metrics-reporter-config copied to clipboard

GraphtieReporter initialized via reporter-config cannot follow DNS changes

Open ngrigoriev opened this issue 8 years ago • 0 comments

From what I see in the code (and what I observed today in our applications), GraphiteReporterConfig calls the constructor of Graphite class that forces it to stick to Graphite server address resolved at startup. Even if DNS information changes, the application won't be able to follow the change.

build(new Graphite(new InetSocketAddress(hostPort.getHost(),
                        hostPort.getPort())));

I think it should call public Graphite(String hostname, int port) instead.

ngrigoriev avatar Mar 01 '16 21:03 ngrigoriev