-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add metrics to controller loops #76
Conversation
Pull Request Test Coverage Report for Build 5772910844
💛 - Coveralls |
/ok-to-test sha=4af5d63 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few small nits. Really nice PR! Exactly what we need
/ok-to-test sha=b2a8d1c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, had some nits
@@ -2,6 +2,8 @@ package common | |||
|
|||
import ( | |||
"context" | |||
"github.com/Azure/aks-app-routing-operator/pkg/controller/metrics" | |||
"github.com/Azure/aks-app-routing-operator/pkg/controller/testutils" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: imports
defer func() { | ||
c.logger.Info("finished checking on ingress controller pods", "latencySec", time.Since(start).Seconds()) | ||
|
||
//placing this call inside a closure allows for result and err to be bound after tick executes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should maybe just include this comment once in a README or something similar in the controller dir - that way we don't have to repeat it so frequently.
open to leaving it though if we think that's the cleanest solution, just not a fan of how many times we repeat it
@@ -7,6 +7,8 @@ import ( | |||
"container/ring" | |||
"context" | |||
"fmt" | |||
"github.com/Azure/aks-app-routing-operator/pkg/controller/metrics" | |||
"github.com/Azure/aks-app-routing-operator/pkg/controller/testutils" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: imports
@@ -5,6 +5,8 @@ package keyvault | |||
|
|||
import ( | |||
"context" | |||
"github.com/Azure/aks-app-routing-operator/pkg/controller/metrics" | |||
"github.com/Azure/aks-app-routing-operator/pkg/controller/testutils" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: imports
@@ -6,6 +6,7 @@ package keyvault | |||
import ( | |||
"context" | |||
"fmt" | |||
"github.com/Azure/aks-app-routing-operator/pkg/controller/testutils" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imports
@@ -5,6 +5,8 @@ package keyvault | |||
|
|||
import ( | |||
"context" | |||
"github.com/Azure/aks-app-routing-operator/pkg/controller/metrics" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@@ -5,6 +5,8 @@ package osm | |||
|
|||
import ( | |||
"context" | |||
"github.com/Azure/aks-app-routing-operator/pkg/controller/metrics" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too
@@ -5,6 +5,8 @@ package service | |||
|
|||
import ( | |||
"context" | |||
"github.com/Azure/aks-app-routing-operator/pkg/controller/metrics" | |||
"github.com/Azure/aks-app-routing-operator/pkg/controller/testutils" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imports
Discussed nits with Jaiveer. We decided they aren't blocking so merged this in. |
Description
Adds metric reporting to the controller runs
Fixes # (issue)
Feature # (details)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. Is it a breaking change which will impact consuming tool(s)?
Checklist: