Example #1
0
        private string RegistrateSummary()
        {
            var name = _namesGenerator.GetRandomName();

            _collection.Add(new MetricDefinition <Summary>(name, Metrics.CreateSummary(name, _namesGenerator.GetRandomName())));
            return(name);
        }
Example #2
0
 /// <inheritdoc/>
 public IPrometheusMetricsRegistry RegistrateCounter(Counter counter)
 {
     _logger.LogDebug("Registrate {name} {type} metric.", counter.Name, "Counter");
     _metrics.Add(new MetricDefinition <Counter>(counter.Name, counter));
     return(this);
 }