Created
December 10, 2018 22:06
-
-
Save tomaustin700/44ff9ba9cd3e03894887f03aaf6abb82 to your computer and use it in GitHub Desktop.
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
static MetricsCollector _collector; | |
_collector = new MetricsCollector(new BosunOptions(ex => Handle(ex)) | |
{ | |
MetricsNamePrefix = "TestApp.", | |
BosunUrl = new System.Uri("http://192.168.1.5:8070"), | |
PropertyToTagName = NameTransformers.CamelToLowerSnakeCase, | |
ThrowOnPostFail = true, | |
DefaultTags = new Dictionary<string, string>{ {"host", NameTransformers.Sanitize(Environment.MachineName.ToLower())}, | |
{ "client", "home" }, } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment