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
Our current deployment process has the ingress simply named {{app name}}-http-ingress, and since we have multiple namespaces ({{app name}}-{{environment}}), this is normally fine for most of our purposes.
We have two ingress controllers that each live in their own namespace.
However, the Dashboard's usage of namespace is the controller's namespace. In our case, that means the current "Controller Class" and "Namespace" options filter on essentially the same thing. The "Ingress" filter will then filter on just the name of the ingress (as it should!) but will end up pulling data from multiple namespaces.
My solution is that I added a new variable, exported_namespace (rough JSON definition):
Our current deployment process has the ingress simply named
{{app name}}-http-ingress
, and since we have multiple namespaces ({{app name}}-{{environment}}
), this is normally fine for most of our purposes.We have two ingress controllers that each live in their own namespace.
However, the Dashboard's usage of
namespace
is the controller's namespace. In our case, that means the current "Controller Class" and "Namespace" options filter on essentially the same thing. The "Ingress" filter will then filter on just the name of the ingress (as it should!) but will end up pulling data from multiple namespaces.My solution is that I added a new variable,
exported_namespace
(rough JSON definition):and then had to go through each of the other panels and add
, exported_namespace=~"$exported_namespace"
as part of the query for a given panel.I may try cleaning it up a bit and submitting it as a PR. I also had to do the
$__interval
to$__rate_interval
change as mentioned in #7 (comment).Also, it does seem like the version at https://grafana.com/grafana/dashboards/14314-kubernetes-nginx-ingress-controller-nextgen-devops-nirvana/ is version 27, as opposed to this repo's version 29. Not sure what's up with that, but the warning on the Grafana page did help me find this updated one, so thank you!
The text was updated successfully, but these errors were encountered: