-
Notifications
You must be signed in to change notification settings - Fork 70
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
healthchecks : Improve self logs processing and healthchecks logs. #1674
Conversation
38458ca
to
29dd983
Compare
993c83f
to
8ffda40
Compare
internal/healthchecks/error.go
Outdated
Message: "Ops Agent failed to parse logs", | ||
Action: "Refer to provided documentation link.", | ||
ResourceLink: "https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info", | ||
IsFatal: true, |
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.
Is this actually a fatal error? Won't fluent-bit continue to run if it fails to parse a log?
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 not a fatal error. Thanks for mentioning. I changed to IsFatal: false
.
confgenerator/self_logs.go
Outdated
@@ -182,13 +172,7 @@ func generateSelfLogsSamplingComponents(ctx context.Context) []fluentbit.Compone | |||
// This method creates a component that enforces the `Structured Health Logs` format to | |||
// all `ops-agent-health` logs. It sets `agentKind`, `agentVersion` and `schemaVersion`. | |||
// It also translates `code` to the rich text message from the `selfLogTranslationList`. |
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.
Remove this comment line if it's no longer needed
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 removed the // It also translates "code" to the rich text message from the "selfLogTranslationList"
part of the comment which is not relevant anymore.
Co-authored-by: Jeff Erbrecht <[email protected]>
af7aaa6
to
113e038
Compare
Description
This PR adds several features and fixes that improve the runtime checks and self logs processing. Here is a detailed description :
severity: debug
logs (add self logs debug severity grep filter #1437, b/272779619).TestNoFluentBitDebugSelfLogs
.self_logs.go
implementation after fluent-bit 2.2 upgrade bug fixes. (b/328463822).sourceLocation
field fromhealth-checks.log
which doesn't bring enough value and makes it harder to read.Runtime Check
errors intohealthchecks/error.go
.Before
health-checks.log
entryAfter
health-checks.log
entryNote : This link points to the committed
.go
files without the goldens to make it easier for review.Related issue
b/272779619, b/303073892, b/328463822
How has this been tested?
Checklist: