public static IMetricFamily <IGauge> CreateGauge(this MetricFactory factory, string name, string help, bool includeTimestamp, bool suppressEmptySamples, params string[] labelNames) { var options = BuildMetricFlags(includeTimestamp, suppressEmptySamples); return(factory.CreateGauge(name, help, options, labelNames)); }
/// <summary> /// Create Gauge in default MetricFactory /// </summary> public static Gauge CreateGauge(string name, string help, params string[] labelNames) { return(DefaultFactory.CreateGauge(name, help, labelNames)); }
public static IMetricFamily <IGauge> CreateGauge(this MetricFactory factory, string name, string help, bool includeTimestamp, params string[] labelNames) { return(factory.CreateGauge(name, help, includeTimestamp, true, labelNames)); }
public static IMetricFamily <IGauge, ValueTuple <string> > CreateGauge(this MetricFactory factory, string name, string help, string labelName, MetricFlags options = MetricFlags.Default) { return(factory.CreateGauge(name, help, ValueTuple.Create(labelName), options)); }