Skip to content

Commit

Permalink
Try more aggresive retry
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Jun 2, 2024
1 parent 829914c commit 3516bc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nix/mixins/aws.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
services.fluent-bit = {
settings = {
pipeline.filters = [ { name = "aws"; match = "*"; } ];
pipeline.filters = [{
name = "aws";
match = "*";
retry_interval_s = "60";
}];
pipeline.outputs = [{
name = "cloudwatch_logs";
match = "*";
Expand All @@ -13,4 +17,4 @@
}];
};
};
}
}
4 changes: 4 additions & 0 deletions nix/modules/fluent-bit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ in
};
config.systemd.services.fluent-bit = {
wantedBy = [ "multi-user.target" ];

# why? Because otherwise it will give up fetching IMDS
# after = [ "network-online.target" ];
# wants = [ "network-online.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${cfg.package}/bin/fluent-bit --config=${configYaml}";
Expand Down

0 comments on commit 3516bc4

Please sign in to comment.