You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Prometheus metrics should not contain empty labels, and no warning messages related to this should be logged.
Your environment
NIC 3.4.1
NGINX Plus
Additional context
Remove the variable label by modifying the line in the source code at https://github.com/nginxinc/kubernetes-ingress/blob/main/cmd/nginx-ingress/main.go#L703 from
Describe the bug
Enabling Prometheus metrics in the Ingress Controller generates unwarranted warning messages in the logs.
To Reproduce
Steps to reproduce the behavior:
-enable-prometheus-metrics
flag.kubectl port-forward `kubectl get po -n nginx-ingress -o=jsonpath="{.items[0].metadata.name}"` 9113:9113 --namespace=nginx-ingress
http://localhost:9113
to access Prometheus metrics.resource_name
,resource_namespace
, andresource_type
.Example:
Expected behavior
Prometheus metrics should not contain empty labels, and no warning messages related to this should be logged.
Your environment
Additional context
Remove the variable label by modifying the line in the source code at
https://github.com/nginxinc/kubernetes-ingress/blob/main/cmd/nginx-ingress/main.go#L703
fromto
This change should result in metrics formatted as follows and eliminate the warning messages:
The text was updated successfully, but these errors were encountered: