Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrometheusExporter"/> class.
 /// </summary>
 /// <param name="options">Options for the exporter.</param>
 public PrometheusExporter(PrometheusExporterOptions options)
 {
     this.Options = options;
     this.Metrics = new List <Metric>();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrometheusExporter{T}"/> class.
 /// </summary>
 /// <param name="options">Options for the exporter.</param>
 /// <param name="metric">The metric instance where metric values and labels can be read from.</param>
 public PrometheusExporter(PrometheusExporterOptions options, Metric <T> metric)
 {
     this.options = options;
     this.metric  = metric;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrometheusExporter"/> class.
 /// </summary>
 /// <param name="options">Options for the exporter.</param>
 /// <param name="viewManager">View manager to get stats from.</param>
 public PrometheusExporter(PrometheusExporterOptions options, IViewManager viewManager)
 {
     this.options     = options;
     this.viewManager = viewManager;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PrometheusExporter"/> class.
 /// </summary>
 /// <param name="options">Options for the exporter.</param>
 public PrometheusExporter(PrometheusExporterOptions options)
 {
     this.Options       = options;
     this.LongMetrics   = new List <Metric <long> >();
     this.DoubleMetrics = new List <Metric <double> >();
 }