fluent-bit icon indicating copy to clipboard operation
fluent-bit copied to clipboard

filter_aws: add more IMDS categories

Open commiterate opened this issue 1 year ago • 1 comments

Add more IMDS categories.

Excluding the EC2 Auto Scaling target lifecycle state (autoscaling/target-lifecycle-state) from the feature request since the AWS filter seems to assume that IMDS data is immutable. We can just make the process that polls it log the state to stdout (for systemd-journald) or syslog to correlate on-system events.

Note that dedicated host ID (and other metadata, both existing and new) may also be mutable due to live migration.

When a degradation is detected on a Dedicated Host that is enabled for host maintenance, we automatically allocate a replacement Dedicated Host in your account. The replacement Dedicated Host receives a new host ID, but retains the same attributes as the original Dedicated Host, including:

  • Auto placement settings
  • Availability Zone
  • Dedicated Host Reservation association
  • Host affinity
  • Host maintenance settings
  • Host recovery settings
  • Instance type
  • Tags

Once the replacement host has been allocated, we migrate the instances using either live migration host maintenance or reboot-based host maintenance, depending on the instance.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-maintenance-basics.html

Fixes https://github.com/fluent/fluent-bit/issues/9640.


Enter [N/A] in the box, if an item is not applicable to your change.

Testing Before we can approve your change; please submit the following in a comment:

  • [ ] Example configuration file for the change
  • [ ] Debug log output from testing the change
  • [ ] Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • [N/A] Run local packaging test showing all targets (including any new ones) build.
  • [N/A] Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • [x] Documentation required for this feature

https://github.com/fluent/fluent-bit-docs/pull/1530

Backporting

  • [N/A] Backport to latest stable release.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

commiterate avatar Dec 16 '24 00:12 commiterate

cc: @PettitWesley @matthewfala

edsiper avatar Dec 18 '24 14:12 edsiper

cc: @sparrc @singholt @swapneils (new code owners)

commiterate avatar Apr 09 '25 19:04 commiterate

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Sep 07 '25 02:09 github-actions[bot]

@sparrc @singholt @swapneils Does one of you have bandwidth to review this?

commiterate avatar Sep 07 '25 05:09 commiterate