Exemplo n.º 1
0
 public LabelledGaugeBuilder(PrometheusRegistry registry, string help, string name, string[] labelNames)
 {
     this.help       = help;
     this.name       = name;
     this.labelNames = labelNames;
     this.registry   = registry;
 }
Exemplo n.º 2
0
 public LabelledHistogramBuilder(IBucket[] buckets, PrometheusRegistry registry, string name, string help, string[] labelNames)
 {
     this.help       = help;
     this.name       = name;
     this.labelNames = labelNames;
     this.registry   = registry;
     this.buckets    = buckets;
 }
        public HistogramBuilder(PrometheusRegistry registry)
        {
            this.registry = registry;

            this.buckets = new Bucket[defaultBucketEdges.Length - 1];
            for (int i = 0; i < defaultBucketEdges.Length - 1; i++)
            {
                buckets[i] = new Bucket(defaultBucketEdges[i], defaultBucketEdges[i + 1]);
            }
        }
Exemplo n.º 4
0
 public GaugeBuilder(PrometheusRegistry registry)
 {
     this.registry = registry;
 }
Exemplo n.º 5
0
 public CounterBuilder(PrometheusRegistry registry)
 {
     this.registry = registry;
 }
Exemplo n.º 6
0
 public PrometheusMetrics()
 {
     registry = new PrometheusRegistry(new CoreclrExporter(this));
 }