Beispiel #1
0
        public static IMetricFamily <IGauge <long> > CreateGaugeInt64(this MetricFactory factory, string name, string help, bool includeTimestamp, bool suppressEmptySamples, params string[] labelNames)
        {
            var options = BuildMetricFlags(includeTimestamp, suppressEmptySamples);

            return(factory.CreateGaugeInt64(name, help, options, labelNames));
        }
Beispiel #2
0
 public static IMetricFamily <IGauge <long> > CreateGaugeInt64(this MetricFactory factory, string name, string help, params string[] labelNames)
 {
     return(factory.CreateGaugeInt64(name, help, false, labelNames));
 }
Beispiel #3
0
 public static IMetricFamily <IGauge <long> > CreateGaugeInt64(this MetricFactory factory, string name, string help, bool includeTimestamp, params string[] labelNames)
 {
     return(factory.CreateGaugeInt64(name, help, includeTimestamp, true, labelNames));
 }
Beispiel #4
0
 public static IMetricFamily <IGauge <long>, ValueTuple <string> > CreateGaugeInt64(this MetricFactory factory, string name, string help, string labelName, MetricFlags options = MetricFlags.Default)
 {
     return(factory.CreateGaugeInt64(name, help, ValueTuple.Create(labelName), options));
 }