Exemple #1
0
        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));
        }
Exemple #2
0
 /// <summary>
 ///     Create Gauge in default MetricFactory
 /// </summary>
 public static Gauge CreateGauge(string name, string help, params string[] labelNames)
 {
     return(DefaultFactory.CreateGauge(name, help, labelNames));
 }
Exemple #3
0
 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));
 }
Exemple #4
0
 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));
 }