Commit Graph

24 Commits

Author SHA1 Message Date
Alex Dadgar
bbc4beeef6 Respond to comments 2016-01-26 14:55:38 -08:00
Alex Dadgar
be5d2d6176 Update client fingerprinters 2016-01-26 10:08:01 -08:00
Abhishek Chanda
13aac9e8af Handle non 200 codes while getting env metadata 2015-12-22 05:23:32 +00:00
Alex Dadgar
d536fe9027 Remove all calls to the default logger 2015-12-11 15:02:13 -08:00
Alex Dadgar
ef1937cd53 Standardize log messages in fingerprinters to DEBUG 2015-11-24 11:06:51 -08:00
Guillaume Jacquet
f5b5741d89 Fix AWS metadata url
Fix URL. It was printing an error message on startup:
```
2015/11/13 15:49:21 [ERR] fingerprint.env_aws: Error querying AWS Metadata URL, skipping
```

By the way is it safe to use latest? Is there a chance that Amazon decides to change the format of the metadata? It could be safer to use something like `http://169.254.169.254/2014-11-05/meta-data`
2015-11-13 11:03:05 -05:00
Alex Dadgar
5b067a3e4f Merge fix 2015-11-05 13:46:02 -08:00
Kenjiro Nakayama
84dc194d8a Use const value for AWS metadata URL 2015-11-04 00:06:14 +09:00
Jeff Mitchell
b13df73ee8 Update the location of cleanhttp 2015-10-22 14:21:07 -04:00
Jeff Mitchell
b0aac09da8 Use cleanhttp for truly clean clients and transports. 2015-10-22 10:58:23 -04:00
Daniel Imfeld
c43978bc4b Fix old comments and other syntax cleanup 2015-10-12 16:56:33 -05:00
Daniel Imfeld
444d6f63e6 isAWS should return false on GCE
GCE and AWS both expose metadata servers, and GCE's 404 response
includes the URL in the content, which maatches the regex. So,
check the response code as well and if a 4xx code comes back,
take that to meanit's not AWS.
2015-10-05 00:42:34 -05:00
Clint Shryock
3624ebdcd0 clean up some log formatting 2015-09-23 14:09:55 -05:00
Clint Shryock
2897780800 prefix warn/error messages 2015-09-23 10:03:35 -05:00
Clint Shryock
dc8ce6d0ff fix casing for ERR logs 2015-09-23 10:00:06 -05:00
Clint Shryock
c799477f83 refactoring, docs 2015-09-22 23:51:56 -05:00
Clint Shryock
a90109c7b8 populate node network resource 2015-09-22 23:22:23 -05:00
Clint Shryock
ea7cc84b94 Move ec2InstanceSpeed to a package variable, convert to string:int map 2015-09-22 22:04:20 -05:00
Clint Shryock
a216204111 Consolidate the AWS fingerprinters 2015-09-22 16:56:04 -05:00
Clint Shryock
2942212ee3 Refactor some AWS things, removing fingerprint/network.go
- move isAWS to env, use in other places
- fingerprint/network.go is no empty; removed
2015-09-22 16:31:57 -05:00
Clint Shryock
4f379f0e29 fingerprint/env_aws: Rename ec2-instance link to aws.ec2, drop ami link 2015-08-31 15:02:31 -05:00
Clint Shryock
1fcfced7e9 fingerprint/aws: Add 2 basic links, rename 'env' to 'platform' 2015-08-31 14:18:40 -05:00
Clint Shryock
44d8a376fa cleanups 2015-08-28 13:09:21 -05:00
Clint Shryock
807a21248a spike on AWS ENV fingerprint 2015-08-28 11:33:41 -05:00