From b309cae8d35bb2de8cced54bf814d8213faddb55 Mon Sep 17 00:00:00 2001 From: Sander Saares Date: Tue, 24 Dec 2019 09:37:35 +0200 Subject: [PATCH] Just "name" for the label is enough, KISS --- ContainerTrackerMetrics.cs | 2 +- ContainerTrackerResourceMetrics.cs | 2 +- ContainerTrackerStateMetrics.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ContainerTrackerMetrics.cs b/ContainerTrackerMetrics.cs index 487c4aa..debb68c 100644 --- a/ContainerTrackerMetrics.cs +++ b/ContainerTrackerMetrics.cs @@ -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 { - LabelNames = new[] { "display_name" } + LabelNames = new[] { "name" } }); private static readonly Histogram BaseInspectContainerDuration = Metrics diff --git a/ContainerTrackerResourceMetrics.cs b/ContainerTrackerResourceMetrics.cs index 7d10ff9..fad8082 100644 --- a/ContainerTrackerResourceMetrics.cs +++ b/ContainerTrackerResourceMetrics.cs @@ -72,7 +72,7 @@ namespace DockerExporter private static GaugeConfiguration ConfigureGauge() => new GaugeConfiguration { - LabelNames = new[] { "display_name" }, + LabelNames = new[] { "name" }, SuppressInitialValue = true }; } diff --git a/ContainerTrackerStateMetrics.cs b/ContainerTrackerStateMetrics.cs index e22362b..ce71acc 100644 --- a/ContainerTrackerStateMetrics.cs +++ b/ContainerTrackerStateMetrics.cs @@ -41,7 +41,7 @@ namespace DockerExporter private static GaugeConfiguration ConfigureGauge() => new GaugeConfiguration { - LabelNames = new[] { "display_name" }, + LabelNames = new[] { "name" }, SuppressInitialValue = true }; }