public void Setup() { _gauge = OurMetricFactory.CreateGauge("testgauge", HelpText); _gaugeInt64 = OurMetricFactory.CreateGaugeInt64("testgaugeInt64", HelpText); _theirGauge = TheirMetricFactory.CreateGauge("testgauge", HelpText); }
public void SingleWithLabels_Int64Tuple() { for (var i = 0; i < _metricsPerIteration; i++) { OurMetricFactory.CreateGaugeInt64("testgauge", HelpText, ("foo", "bar", "baz")); } }
public void Single_Int64() { for (var i = 0; i < _metricsPerIteration; i++) { OurMetricFactory.CreateGaugeInt64("testgauge", HelpText, ValueTuple.Create()); } }
public void ManyWithLabels_Int64Tuple() { for (var i = 0; i < _metricsPerIteration; i++) { OurMetricFactory.CreateGaugeInt64(_metricNames[i], HelpText, ("foo", "bar", "baz")); } }
public void Many_Int64() { for (var i = 0; i < _metricsPerIteration; i++) { OurMetricFactory.CreateGaugeInt64(_metricNames[i], HelpText, ValueTuple.Create()); } }
public void SingleWithSharedLabels_Int64Array() { for (var i = 0; i < _metricsPerIteration; i++) { OurMetricFactory.CreateGaugeInt64("testgauge", HelpText, _labelNames); } }
public void WithLabels_Int64Array() { for (var i = 0; i < _metricsCount; i++) { var gauge = OurMetricFactory.CreateGaugeInt64(_metricNames[i], HelpText, "foo", "bar", "baz"); gauge.Inc(); } }
public void NoLabels_Int64() { for (var i = 0; i < _metricsCount; i++) { var gauge = OurMetricFactory.CreateGaugeInt64(_metricNames[i], HelpText); gauge.Inc(); } }
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(); } } }