Skip to content
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: Update Grafana controller_runtime_reconcile_errors_total to target a specific controller #6181

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yogeek
Copy link

@yogeek yogeek commented May 11, 2024

Fixes #6163

Description : add job in dashboard's label_values query to get controller values only from karpenter and not from other addons

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

netlify bot commented May 11, 2024

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit d94b44c
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/663f7b0fe6693700087d642e
😎 Deploy Preview https://deploy-preview-6181--karpenter-docs-prod.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -351,7 +351,7 @@
"datasource": {
"uid": "${datasource}"
},
"definition": "label_values(controller_runtime_reconcile_errors_total, controller)",
"definition": "label_values(controller_runtime_reconcile_errors_total{job=~\"karpenter\"}, controller)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"definition": "label_values(controller_runtime_reconcile_errors_total{job=~\"karpenter\"}, controller)",
"definition": "label_values(controller_runtime_reconcile_errors_total{controller="$controller"}, controller)",

This matches what we have for the other controller_runtime_... metrics in this file

@@ -361,7 +361,7 @@
"name": "controller",
"options": [],
"query": {
"query": "label_values(controller_runtime_reconcile_errors_total, controller)",
"query": "label_values(controller_runtime_reconcile_errors_total{job=~\"karpenter\"}, controller)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"query": "label_values(controller_runtime_reconcile_errors_total{job=~\"karpenter\"}, controller)",
"query": "label_values(controller_runtime_reconcile_errors_total{controller="$controller"}, controller)",

Same here

@jonathan-innis jonathan-innis changed the title fix: #6163 fix: Update Grafana controller_runtime_reconcile_errors_total to target a specific controller May 11, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 9044221514

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 82.264%

Totals Coverage Status
Change from base Build 9037334877: 0.0%
Covered Lines: 5413
Relevant Lines: 6580

💛 - Coveralls

Copy link
Contributor

This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add {job="karpenter"} to "label_values" to discriminate from other controllers
3 participants