Skip to content

Instantly share code, notes, and snippets.

@tomaustin700
Created December 10, 2018 22:06
Show Gist options
  • Save tomaustin700/44ff9ba9cd3e03894887f03aaf6abb82 to your computer and use it in GitHub Desktop.
Save tomaustin700/44ff9ba9cd3e03894887f03aaf6abb82 to your computer and use it in GitHub Desktop.
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