configure default log rotation
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 17k
- Forks
- 2.1k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 105
Description
Proposal
Currently, the logs config block for alloc logs rotation must be configured on a per-task basis. This can be quite cumbersome. Requesting the ability to change the defaults in the client config.
Use-cases
When running promtail as a system job, if a job dumps a large amount of logs all at once (i.e. more than 10 * 10MB), the files willl quickly get rotated out with the default settings and promtail completely misses some log lines.
Attempted Solutions
Configuring the logs block for every task, although this is quite a lot of redundant configuration and is error-prone
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the client configuration handling and the alloc log rotation settings, then trace how the logs block is currently applied per task. Define how client-level defaults should be represented and how they interact with task-level configuration. Done means log rotation defaults can be configured once in the client config for jobs such as system jobs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100