コード例 #1
0
 public static Counter CreateCounter(string name, string help, CounterConfiguration configuration) =>
 DefaultFactory.CreateCounter(name, help, configuration);
コード例 #2
0
ファイル: MetricFactory.cs プロジェクト: HammerAlf/Runtime
 /// <inheritdoc/>
 public Counter Counter(string name, string help, CounterConfiguration configuration = null)
 {
     return(_innerMetricFactory.CreateCounter(name, help, configuration));
 }
コード例 #3
0
 public static Counter CreateCounter(string name, string help, params string[] labelNames)
 {
     return(DefaultFactory.CreateCounter(name, help, labelNames));
 }
コード例 #4
0
 protected override ICollector <ICounter> CreateMetricInstance(string[] labelNames) => MetricFactory.CreateCounter(
     "grpc_requests_received_total",
     "Number of gRPC requests received (including those currently being processed).",
     new CounterConfiguration
 {
     LabelNames = labelNames
 });