Open kamilchm opened 7 years ago
We did something similar a while ago - https://github.com/pantheon-systems/go-metrics-graphite/commit/d377c3b32efb31903b3c694fb430eb4c066ecfb4
It would be great to figure out a solution to this. This particular approach might be problematic because it would break existing users that are passing a net.Addr. Not sure how to move forward in a backward-compat way.
Hi, I wanted to use this library to collect metrics to a infrastructure where Graphite hosts are stored in a DNS. Passing Graphite address as a
net.net.TCPAddr
means that you can loose future metrics when one of Graphite hosts in cluster will be replaced.So I've changed
Graphite()
interface to accept address as astring
and use it on each flush operation. https://github.com/cyberdelia/go-metrics-graphite/compare/master...kamilchm:master?expand=1What do you think about such change?