awslabs / collectd-cloudwatch

A collectd plugin for sending data to Amazon CloudWatch
MIT License
199 stars 131 forks source link

switch IMDSV1 explicitly when failed to get data from IMDSV2 #96

Closed yimuniao closed 3 years ago

yimuniao commented 3 years ago

Issue #, if available: In some container case, it need to set hop limit to http-put-response-hop-limit for IMDSV1.

Description of changes: fallback to a clean IMDSV1 request if the request contains token fails.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.