Beispiel #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();
     }
 }
Beispiel #2
0
 public Batch(Metrics metrics)
 {
     this.metrics = metrics;
 }
Beispiel #3
0
 public Batch(Metrics metrics)
 {
     this.metrics = metrics;
 }