-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix datasource, $exported_namespace variable in grafana nginx dashboard #9092
Conversation
@fschlich: This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Welcome @fschlich! |
Hi @fschlich. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@longwuyuan thanks for looking into this!
dashboard as-is:
|
@fschlich thanks for the update. The project is in a feature-freeze phase. It was announced some months ago. All resources are directed towards stabilization efforts. So info like this helps to know if this change is part of stabilization without having to spend too much time. |
I was going to open an issue for these broken panels so I'm glad there's already an attempt to fix them. @fschlich I have some suggestions for other improvements. As you have it, the values for exported_namespace are filtered by $ingress. It would be better to switch things around, so that you can first filter by a namespace, and then by ingresses within that namespace. I would also suggest renaming the label for the new variable to "Ingress namespace". The meaning seems a bit clearer to me. Workflow based on the current state of the PR: New workflow: The ingress namespace filter should probably also apply to the "Ingress Request Volume" and "Ingress Success Rate" panels. |
This is the diff that I have on top of your PR. |
Hi @tghartland, yes, yes and yes - for renaming to Ingress Namespace, switching around with Ingress, and finally apply that to "Ingress Request Volume" and "Ingress Success Rate" panels. Makes perfect sense. Can you just add those changes to this PR, or do I have to do that? |
I can't push to your branch, but here's the file you can copy in yourself. |
Seems my first commit was essentially merged as #9284. Maybe we can move forward with the rest now, too? |
…e (was deleted entirely in kubernetes#9523)
… and rename "Exported Namespace" to "Ingress Namespace" authored by tghartland at https://gist.github.com/tghartland/9147d88f991a95d4bab0fa7278c237eb
…cess Rate" panels look at selected Ingress Namespaces only, and rename two panel titels to use the renamed variable as suggested by tghartland in kubernetes#9092 (comment)
…Percentile Response Times and Transfer Rates" as well this is from kubernetes#9092 (comment) also by tghartland
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fschlich, rikatz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
PR #8586 added two panels to the general "NGINX / Ingress controller" dashboard, which unfortunately introduced two issues:
exported_namespace="uat"
, whereas this should be a dashboard variable for the user to choose a value (like with the other labels).This PR addresses both issues, and fixes the sort order of the possible variable values to be alphabetical.
Types of changes
Which issue/s this PR fixes
described above, I didn't think opening separate issues would add valueHow Has This Been Tested?
imported the fixed dashboard in Grafana 8.5.0 and verified that the issues described above no longer occur
Checklist:
Does my pull request need a release note?
Any user-visible or operator-visible change qualifies for a release note. This could be a:
No release notes are required for changes to the following:
For more tips on writing good release notes, check out the Release Notes Handbook