Created
February 18, 2018 02:31
-
-
Save rkhmelyuk/857a2aa3a58c35df40363c4cbf1be0a3 to your computer and use it in GitHub Desktop.
publish graphite metrics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// publish metrics every minute to graphite at 'graphite.mycompany.com:2003' | |
// 'application_name' is a prefix for this application metrics | |
addr, _ := net.ResolveTCPAddr("tcp", "graphite.mycompany.com:2003") | |
go graphite.Graphite(metrics.DefaultRegistry, 1*time.Minute, "application_name", addr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment