Exemplo n.º 1
0
 static Metrics()
 {
     MetricsCollectionEnabled = false;
     bool.TryParse(ConfigurationManager.AppSettings["metrics_enabled"], out MetricsCollectionEnabled);
     var host = ConfigurationManager.AppSettings["metrics_host"];
     if (string.IsNullOrWhiteSpace(host))
     {
         host = "127.0.0.1";
     }
     var port = 8125;
     int.TryParse(ConfigurationManager.AppSettings["metrics_port"], out port);
     Default = new Metrics(host, port);
     if (MetricsCollectionEnabled)
     {
         AsyncMetricAppender.Start();
     }
 }
Exemplo n.º 2
0
 public Batch(Metrics metrics)
 {
     this.metrics = metrics;
 }
Exemplo n.º 3
0
 public Batch(Metrics metrics)
 {
     this.metrics = metrics;
 }