Skip to content
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 logrotate config #6142

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* [ENHANCEMENT] Ruler: Fetch secrets used to configure TLS on the Alertmanager client from Vault when `-vault.enabled` is true. #5239
* [ENHANCEMENT] Query-frontend: added query-sharding support for `group by` aggregation queries. #6024
* [ENHANCEMENT] Fetch secrets used to configure server-side TLS from Vault when `-vault.enabled` is true. #6052.
* [ENHANCEMENT] Packaging: add logrotate config file. #6142
* [BUGFIX] Query-frontend: Don't retry read requests rejected by the ingester due to utilization based read path limiting. #6032
* [BUGFIX] Ring: Ensure network addresses used for component hash rings are formatted correctly when using IPv6. #6068
* [BUGFIX] Query-scheduler: don't retain connections from queriers that have shut down, leading to gradually increasing enqueue latency over time. #6100
Expand Down
10 changes: 10 additions & 0 deletions packaging/nfpm/mimir/mimir.logrotate
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/var/log/mimir/mimir.log {
compress
copytruncate
create 0600 root root
daily
missingok
nodelaycompress
notifempty
rotate 7
}
5 changes: 5 additions & 0 deletions packaging/nfpm/nfpm.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ local overrides = {
dst: '/etc/mimir/runtime_config.yml',
type: 'config|noreplace',
},
{
src: './dist/tmp/dependencies-%s-%s-%s/mimir.logrotate' % [name, packager, arch],
dst: '/etc/logrotate.d/mimir',
type: 'config|noreplace',
},
],
scripts: {
postinstall: './dist/tmp/dependencies-%s-%s-%s/postinstall.sh' % [name, packager, arch],
Expand Down
Loading