-
Notifications
You must be signed in to change notification settings - Fork 604
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
Ensure OTel directories are writable #4090
Conversation
b393115
to
86ed388
Compare
This prevents log records from being emitted multiple times.
The `install` command only sets permissions on the final directory.
The `install` command only sets permissions on the final directory.
86ed388
to
7cdd56f
Compare
|
||
otelConfig.Extensions["file_storage/pgadmin_data_logs"] = map[string]any{ | ||
"directory": "/var/lib/pgadmin/logs/receiver", | ||
"create_directory": false, |
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.
OK, so we're creating the /receiver
directory in pod.go
shell.MakeDirectories(0o775, dataMountPath, path.Join(LogDirectoryAbsolutePath, "receiver")),
hmmm, not sure I have a question here, just interested in the different way we're doing this.
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've put TODOs elsewhere to create the directory using our function. This create_directory
option does not do what we need in Kubernetes; opentelemetry-collector-contrib#37774
IMV, this directory is a collector concern and belongs in its (the sidecar's) shell entrypoint or other init.
Checklist:
Type of Changes:
What is the current behavior (link to any open issues here)?
The pgAdmin log offsets are stored in
/tmp
to avoid conflicting permissions.What is the new behavior (if this is a feature change)?
The pgAdmin log directories are created and updated to be writable during startup. Log offsets are now stored alongside logs.