Skip to content

Commit

Permalink
pass correct arguments to NewVariableLabelNames()
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed Dec 8, 2023
1 parent 3318cd9 commit 1368223
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/nginx-ingress/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,10 @@ func createPlusAndLatencyCollectors(

serverZoneVariableLabels := []string{"resource_type", "resource_name", "resource_namespace"}
streamServerZoneVariableLabels := []string{"resource_type", "resource_name", "resource_namespace"}
cacheZoneLabels := []string{"resource_type", "resource_name", "resource_namespace"}
workerPIDVariableLabels := []string{"resource_type", "resource_name", "resource_namespace"}
variableLabelNames := nginxCollector.NewVariableLabelNames(upstreamServerVariableLabels, serverZoneVariableLabels, upstreamServerPeerVariableLabelNames,
streamUpstreamServerVariableLabels, streamServerZoneVariableLabels, streamUpstreamServerPeerVariableLabelNames, nil, nil)
streamUpstreamServerVariableLabels, streamServerZoneVariableLabels, streamUpstreamServerPeerVariableLabelNames, cacheZoneLabels, workerPIDVariableLabels)
promlogConfig := &promlog.Config{}
logger := promlog.New(promlogConfig)
plusCollector = nginxCollector.NewNginxPlusCollector(plusClient, "nginx_ingress_nginxplus", variableLabelNames, constLabels, logger)
Expand Down

0 comments on commit 1368223

Please sign in to comment.