fix bug
This commit is contained in:
@@ -17,7 +17,10 @@ public class MareMetrics
|
|||||||
foreach (var gauge in gaugesToServe)
|
foreach (var gauge in gaugesToServe)
|
||||||
{
|
{
|
||||||
logger.LogInformation($"Creating Metric for Counter {gauge}");
|
logger.LogInformation($"Creating Metric for Counter {gauge}");
|
||||||
|
if (!string.Equals(gauge, MetricsAPI.GaugeConnections, StringComparison.OrdinalIgnoreCase))
|
||||||
_gauges.Add(gauge, Prometheus.Metrics.CreateGauge(gauge, gauge));
|
_gauges.Add(gauge, Prometheus.Metrics.CreateGauge(gauge, gauge));
|
||||||
|
else
|
||||||
|
_gauges.Add(gauge, Prometheus.Metrics.CreateGauge(gauge, gauge, new[] { "continent" }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user