Skip to content
This repository was archived by the owner on Feb 20, 2022. It is now read-only.

Commit b309cae

Browse files
committed
Just "name" for the label is enough, KISS
1 parent b394173 commit b309cae

3 files changed

+3
-3
lines changed

ContainerTrackerMetrics.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void Dispose()
2424

2525
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
2626
{
27-
LabelNames = new[] { "display_name" }
27+
LabelNames = new[] { "name" }
2828
});
2929

3030
private static readonly Histogram BaseInspectContainerDuration = Metrics

ContainerTrackerResourceMetrics.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void Unpublish()
7272

7373
private static GaugeConfiguration ConfigureGauge() => new GaugeConfiguration
7474
{
75-
LabelNames = new[] { "display_name" },
75+
LabelNames = new[] { "name" },
7676
SuppressInitialValue = true
7777
};
7878
}

ContainerTrackerStateMetrics.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void Unpublish()
4141

4242
private static GaugeConfiguration ConfigureGauge() => new GaugeConfiguration
4343
{
44-
LabelNames = new[] { "display_name" },
44+
LabelNames = new[] { "name" },
4545
SuppressInitialValue = true
4646
};
4747
}

0 commit comments

Comments
 (0)