Just "name" for the label is enough, KISS

This commit is contained in:
Sander Saares 2019-12-24 09:37:35 +02:00
parent b394173b60
commit b309cae8d3
3 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ namespace DockerExporter
private static readonly Counter BaseFailedProbeCount = Metrics.CreateCounter("docker_probe_container_failed_total", "Number of times the exporter failed to collect information about a specific container.", new CounterConfiguration private static readonly Counter BaseFailedProbeCount = Metrics.CreateCounter("docker_probe_container_failed_total", "Number of times the exporter failed to collect information about a specific container.", new CounterConfiguration
{ {
LabelNames = new[] { "display_name" } LabelNames = new[] { "name" }
}); });
private static readonly Histogram BaseInspectContainerDuration = Metrics private static readonly Histogram BaseInspectContainerDuration = Metrics

View file

@ -72,7 +72,7 @@ namespace DockerExporter
private static GaugeConfiguration ConfigureGauge() => new GaugeConfiguration private static GaugeConfiguration ConfigureGauge() => new GaugeConfiguration
{ {
LabelNames = new[] { "display_name" }, LabelNames = new[] { "name" },
SuppressInitialValue = true SuppressInitialValue = true
}; };
} }

View file

@ -41,7 +41,7 @@ namespace DockerExporter
private static GaugeConfiguration ConfigureGauge() => new GaugeConfiguration private static GaugeConfiguration ConfigureGauge() => new GaugeConfiguration
{ {
LabelNames = new[] { "display_name" }, LabelNames = new[] { "name" },
SuppressInitialValue = true SuppressInitialValue = true
}; };
} }