-
Notifications
You must be signed in to change notification settings - Fork 303
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 new metric status PersistentError for L4 DualStack #1944
Conversation
a073bdb
to
7e4f4ec
Compare
df9ba09
to
7f4a42d
Compare
7f4a42d
to
99df692
Compare
pkg/metrics/metrics.go
Outdated
@@ -39,7 +39,8 @@ const ( | |||
// Env variable for ingress version | |||
versionVar = "INGRESS_VERSION" | |||
// Dummy float so we can used bool based timeseries | |||
versionValue = 1.0 | |||
versionValue = 1.0 | |||
persistentErrorThreshold = 20 * time.Minute |
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.
persistentErrorThresholdTime?
type L4DualStackServiceState struct { | ||
L4DualStackServiceLabels | ||
// FirstSyncErrorTime specifies the time timestamp when the service sync ended up with error for the first time. | ||
FirstSyncErrorTime *time.Time |
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.
FirstSyncTime?
you always set it, not only when error happens
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.
It is funny logic we have, but on every sync we initially set the service to Error state, and only on successfuly sync update it to success
That's why on every beggining on sync we also set FirstSyncErrorTime -- considering that service is in Error state
So I think we should keep the name
Report PersistentError if service is in Error after 20 minutes of retries
99df692
to
5291909
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cezarygerard, panslava 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 |
Report PersistentError if service is in Error after 20 minutes of
retries
Should be merged after NetLB Metrics #1937
/assign cezarygerard