Skip to content

Commit

Permalink
feat(processors.aws_ec2): Allow to use instance metadata (influxdata#…
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan authored and asaharn committed Oct 16, 2024
1 parent 43d13f6 commit ec8463b
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 135 deletions.
22 changes: 17 additions & 5 deletions plugins/processors/aws_ec2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
## * ramdiskId
## * region
## * version
imds_tags = []
# imds_tags = []

## EC2 instance tags retrieved with DescribeTags action.
## In case tag is empty upon retrieval it's omitted when tagging metrics.
Expand All @@ -47,23 +47,35 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
##
## For more information see:
## https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTags.html
ec2_tags = []
# ec2_tags = []

## Paths to instance metadata information to attach to the metrics.
## Specify the full path without the base-path e.g. `tags/instance/Name`.
##
## For more information see:
## https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
# metadata_paths = []

## Allows to convert metadata tag-names to canonical names representing the
## full path with slashes ('/') being replaces with underscores. By default,
## only the last path element is used to name the tag.
# canonical_metadata_tags = false

## Timeout for http requests made by against aws ec2 metadata endpoint.
timeout = "10s"
# timeout = "10s"

## ordered controls whether or not the metrics need to stay in the same order
## this plugin received them in. If false, this plugin will change the order
## with requests hitting cached results moving through immediately and not
## waiting on slower lookups. This may cause issues for you if you are
## depending on the order of metrics staying the same. If so, set this to true.
## Keeping the metrics ordered may be slightly slower.
ordered = false
# ordered = false

## max_parallel_calls is the maximum number of AWS API calls to be in flight
## at the same time.
## It's probably best to keep this number fairly low.
max_parallel_calls = 10
# max_parallel_calls = 10

## cache_ttl determines how long each cached item will remain in the cache before
## it is removed and subsequently needs to be queried for from the AWS API. By
Expand Down
Loading

0 comments on commit ec8463b

Please sign in to comment.