8000 Remove redundant Prometheus variable labels (#5008) (#5085) · nginx/kubernetes-ingress@0f45ece · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f45ece

Browse files
authored
Remove redundant Prometheus variable labels (#5008) (#5085)
Remove redundant variable labels Signed-off-by: Haywood Shannon <5781935+haywoodsh@users.noreply.github.com> (cherry picked from commit fb60fb6)
1 parent 997981f commit 0f45ece

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cmd/nginx-ingress/main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -699,10 +699,8 @@ func createPlusAndLatencyCollectors(
699699

700700
serverZoneVariableLabels := []string{"resource_type", "resource_name", "resource_namespace"}
701701
streamServerZoneVariableLabels := []string{"resource_type", "resource_name", "resource_namespace"}
702-
cacheZoneLabels := []string{"resource_type", "resource_name", "resource_namespace"}
703-
workerPIDVariableLabels := []string{"resource_type", "resource_name", "resource_namespace"}
704702
variableLabelNames := nginxCollector.NewVariableLabelNames(upstreamServerVariableLabels, serverZoneVariableLabels, upstreamServerPeerVariableLabelNames,
705-
streamUpstreamServerVariableLabels, streamServerZoneVariableLabels, streamUpstreamServerPeerVariableLabelNames, cacheZoneLabels, workerPIDVariableLabels)
703+
streamUpstreamServerVariableLabels, streamServerZoneVariableLabels, streamUpstreamServerPeerVariableLabelNames, nil, nil)
706704
promlogConfig := &promlog.Config{}
707705
logger := promlog.New(promlogConfig)
708706
plusCollector = nginxCollector.NewNginxPlusCollector(plusClient, "nginx_ingress_nginxplus", variableLabelNames, constLabels, logger)

0 commit comments

Comments
 (0)
0