Example #1
0
 public static IMetricFamily <IHistogram, ValueTuple <string> > CreateHistogram(this MetricFactory factory, string name, string help, string labelName, double[] buckets = null, MetricFlags options = MetricFlags.Default)
 {
     return(factory.CreateHistogram(name, help, ValueTuple.Create(labelName), buckets, options));
 }
Example #2
0
        public static IMetricFamily <IHistogram> CreateHistogram(this MetricFactory factory, string name, string help, bool includeTimestamp, bool suppressEmptySamples, double[] buckets, params string[] labelNames)
        {
            var options = BuildMetricFlags(includeTimestamp, suppressEmptySamples);

            return(factory.CreateHistogram(name, help, buckets, options, labelNames));
        }
Example #3
0
 public static IMetricFamily <IHistogram> CreateHistogram(this MetricFactory factory, string name, string help, bool includeTimestamp, double[] buckets, params string[] labelNames)
 {
     return(factory.CreateHistogram(name, help, includeTimestamp, true, buckets, labelNames));
 }
Example #4
0
 public static IMetricFamily <IHistogram> CreateHistogram(this MetricFactory factory, string name, string help, params string[] labelNames)
 {
     return(factory.CreateHistogram(name, help, false, labelNames));
 }
Example #5
0
 /// <summary>
 ///     Create Histogram in default MetricFactory
 /// </summary>
 public static Histogram CreateHistogram(string name, string help, double[] buckets, params string[] labelNames)
 {
     return(DefaultFactory.CreateHistogram(name, help, buckets, labelNames));
 }
Example #6
0
 /// <summary>
 ///     Create Histogram
 /// </summary>
 /// <param name="name">Name.</param>
 /// <param name="help">Help text.</param>
 /// <param name="labelNames">Array of label names.</param>
 public static Histogram CreateHistogram(string name, string help, params string[] labelNames)
 {
     return(DefaultFactory.CreateHistogram(name, help, false, labelNames));
 }