Ray Tung
189cc9ce3c
Fixes #2232
...
This commit fixes the bug in #2232 where cadvisor was not able to detect
the cloud provider if it's running on a custom AMI derived from
Amazon Linux 2.
It does so by checking /etc/os-release. However, from what I've read,
/etc/os-release is pretty much a systemd thing. Although Amazon Linux 2
comes with systemd, cadvisor cannot assume the existence of systemd in
other AMIs / OSes, therefore we would only be checking for
/etc/os-release if all other methods fail us.
2019-05-15 23:52:28 +10:00
Tim Allclair
c492e4a814
Remove CloudProvider SDK dependencies
2019-04-04 10:07:24 -07:00
Devin Trejo
fe06d6ebd4
Fix Amazon VM detection on EC2 Nitro generation.
2019-01-29 12:02:23 -05:00
Davanum Srinivas
4da6d809be
Move from glog to klog
...
Change-Id: Ic92f57c2d7f268d8d985797974883c1a537d6993
2018-11-08 18:06:28 -05:00
Tim St. Clair
afe67fec68
Cleanup comment style: // should be proceded by a space
2016-10-07 17:06:02 -07:00
Tim St. Clair
e7576e5790
Moved google.golang.org/cloud/compute/metadata to cloud.google.com/go/compute/metadata
2016-09-13 13:59:03 -07:00
Erez Freiberger
cf548f1b70
cloudinfo: identify gce from file
2016-07-01 11:43:09 +03:00
Erez Freiberger
b52cf9f5db
cloudinfo: bugfix openstack identified as aws
...
Because openstack and aws uses the exact same api,
the previous method to check for if running on aws
would have returned true on openstack as well.
2016-03-20 14:52:21 +02:00
derekwaynecarr
4886fb51b2
Fix detection of AWS cloud taking 20s when not on AWS
2016-03-09 16:26:44 -05:00
derekwaynecarr
89676792bd
Fix typo in constant
2016-03-08 13:00:16 -05:00
Erez Freiberger
885649a9b6
cloudinfo: Adding AWS support and InstanceID
2016-02-18 15:28:20 +02:00
Lei Xue
dbbe38dfed
re-order the import package
2015-11-30 16:43:22 +08:00
Mike Danese
38ab53a8ff
use gcloud-golang vanity domain
2015-08-19 16:15:01 -07:00
Ananya Kumar
0a84ac1cda
Fix incorrect use of metadata library, correct typo
2015-07-06 13:13:10 -07:00
AnanyaKumar
ee16d6e7da
Victor code review
2015-06-30 15:48:56 -07:00
Ananya Kumar
1abd853d6b
Create package cloudinfo
2015-06-19 02:35:08 -04:00