Ejemplo n.º 1
0
        public void Setup()
        {
            _gauge      = OurMetricFactory.CreateGauge("testgauge", HelpText);
            _gaugeInt64 = OurMetricFactory.CreateGaugeInt64("testgaugeInt64", HelpText);

            _theirGauge = TheirMetricFactory.CreateGauge("testgauge", HelpText);
        }
Ejemplo n.º 2
0
 public void SingleWithLabels_Int64Tuple()
 {
     for (var i = 0; i < _metricsPerIteration; i++)
     {
         OurMetricFactory.CreateGaugeInt64("testgauge", HelpText, ("foo", "bar", "baz"));
     }
 }
Ejemplo n.º 3
0
 public void Single_Int64()
 {
     for (var i = 0; i < _metricsPerIteration; i++)
     {
         OurMetricFactory.CreateGaugeInt64("testgauge", HelpText, ValueTuple.Create());
     }
 }
Ejemplo n.º 4
0
 public void ManyWithLabels_Int64Tuple()
 {
     for (var i = 0; i < _metricsPerIteration; i++)
     {
         OurMetricFactory.CreateGaugeInt64(_metricNames[i], HelpText, ("foo", "bar", "baz"));
     }
 }
Ejemplo n.º 5
0
 public void Many_Int64()
 {
     for (var i = 0; i < _metricsPerIteration; i++)
     {
         OurMetricFactory.CreateGaugeInt64(_metricNames[i], HelpText, ValueTuple.Create());
     }
 }
Ejemplo n.º 6
0
 public void SingleWithSharedLabels_Int64Array()
 {
     for (var i = 0; i < _metricsPerIteration; i++)
     {
         OurMetricFactory.CreateGaugeInt64("testgauge", HelpText, _labelNames);
     }
 }
Ejemplo n.º 7
0
 public void WithLabels_Int64Array()
 {
     for (var i = 0; i < _metricsCount; i++)
     {
         var gauge = OurMetricFactory.CreateGaugeInt64(_metricNames[i], HelpText, "foo", "bar", "baz");
         gauge.Inc();
     }
 }
Ejemplo n.º 8
0
 public void NoLabels_Int64()
 {
     for (var i = 0; i < _metricsCount; i++)
     {
         var gauge = OurMetricFactory.CreateGaugeInt64(_metricNames[i], HelpText);
         gauge.Inc();
     }
 }
Ejemplo n.º 9
0
 public void WithLabelsAndSamples_Int64Tuple()
 {
     for (var i = 0; i < _metricsCount; i++)
     {
         var gauge = OurMetricFactory.CreateGaugeInt64(_metricNames[i], HelpText, ("foo", "bar", "baz"));
         for (var j = 0; j < _samplesCount; j++)
         {
             gauge.WithLabels((_labelValues[j][0], _labelValues[j][1], _labelValues[j][2])).Inc();
         }
     }
 }