Commit Graph

134 Commits

Author SHA1 Message Date
Alex Dadgar
b818379576 add nomad fingerprinter 2016-03-22 17:12:30 -07:00
Alex Dadgar
df22fcad3d Merge pull request #712 from iverberk/f-cgroup-finterprinter
Add periodic cgroup fingerprinter
2016-01-29 08:50:43 -08:00
Ivo Verberk
0289252ce7 Add comments and small improvements to cgroup fingerprinter 2016-01-29 14:34:29 +01:00
Ivo Verberk
5266f6d947 Fix comment 2016-01-27 10:56:35 +01:00
Ivo Verberk
d8480ac75b Add a periodic cgroup fingerprinter 2016-01-27 07:22:25 +01:00
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
Diptanu Choudhury
83c4650c94 Renaming constants 2015-12-11 13:47:35 -08:00
Diptanu Choudhury
c9277e27cf Renaming constants 2015-12-11 13:18:04 -08:00
Diptanu Choudhury
b3ed3e4942 Changed the log line in consul fingerprinter 2015-12-11 09:10:21 -08:00
Diptanu Choudhury
deea0d6031 Print consul debug messages only when the consul agent is available 2015-12-11 09:06:03 -08:00
Chris Hines
6a2abc9466 Improve error messages. 2015-12-09 16:34:18 -05:00
Chris Hines
bdce51b636 Use GetDiskFreeSpaceEx instead of parsing output of fsutil on Windows. 2015-11-30 16:43:25 -05:00
Alex Dadgar
ef1937cd53 Standardize log messages in fingerprinters to DEBUG 2015-11-24 11:06:51 -08:00
Alex Dadgar
220f79cefc Clear consul attributes if consul couldn't be fingerprinted 2015-11-22 13:51:10 -08:00
Alex Dadgar
e898adc78a Fingerprinter only creates one consul client 2015-11-22 13:42:06 -08:00
Alex Dadgar
82bfeb63df Fix network fingerprint test 2015-11-19 09:22:32 -08:00
Alex Dadgar
5e1f7c41a9 Allow no interfaces in network fingerprinter 2015-11-18 19:01:39 -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
f28b9e7338 Merge pull request #400 from nak3/fingerprint-test
Update fingerprint test codes
2015-11-10 17:06:16 -08:00
Kenjiro Nakayama
b66244b46f Update fingerprint test codes 2015-11-07 23:16:43 +09:00
Chris Bednarski
472d1db1c0 Merge branch 'master' into f-windows-networking 2015-11-06 13:32:28 -08:00
Alex Dadgar
f43c067b3e Client handles periodic fingerprinters 2015-11-05 13:46:17 -08:00
Alex Dadgar
8e0ab77b10 Add consul fingerprinter to builtin list; sort list; fix bad error in consul fingerprinter 2015-11-05 13:46:16 -08: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
Chris Bednarski
835b2041ee Use the same network fingerprinter for *nix and windows 2015-10-30 16:48:02 -07:00
Diptanu Choudhury
a2bdd2ae0c Refactored code 2015-10-29 16:16:10 -07:00
Diptanu Choudhury
804d88d7f0 Renamed BasicNetworkInterfaceDetector to DefaultNetworkInterfaceDetector 2015-10-29 15:55:49 -07:00
Diptanu Choudhury
06ac210eec Fixed a debug message 2015-10-29 15:17:40 -07:00
Diptanu Choudhury
d684b8e0e7 Fixed style of a debug log 2015-10-29 15:15:44 -07:00
Diptanu Choudhury
e85ec5c2e2 Added a test to ensure we are not selecting devices which are not marked as UP or loopback and have no IP addresses 2015-10-29 15:14:13 -07:00
Diptanu Choudhury
24b1a8eb3e Added some coments 2015-10-29 11:05:58 -07:00
Diptanu Choudhury
617edcdddd Added tests for testing detecting default device 2015-10-29 11:01:15 -07:00
Diptanu Choudhury
764a6bdf1d Introduced an interface to detect network devices so that we can mock it for tests 2015-10-28 15:58:40 -07:00
Diptanu Choudhury
e61c4ad130 Refactored the findInterfaces method to make it more clear 2015-10-28 15:48:08 -07:00
Diptanu Choudhury
e470eb230d Some coding style changes 2015-10-28 15:03:11 -07:00
Diptanu Choudhury
65b47b824a We don't want lo and PPP in production 2015-10-28 14:44:46 -07:00
Diptanu Choudhury
345ccb112a Added more information to log 2015-10-28 14:41:13 -07:00
Diptanu Choudhury
ae8b07e85a Adding more information to errors 2015-10-28 14:32:13 -07:00
Diptanu Choudhury
2c3def89b3 Added more comments 2015-10-28 14:03:33 -07:00
Diptanu Choudhury
61a56c1ab2 Selecting the ipv4 address if there are ipv4 and ipv6 addresses configured for an interface 2015-10-28 13:38:28 -07:00
Diptanu Choudhury
48d71cc20a Exctracted a method to detect network interface 2015-10-28 11:11:13 -07:00
Diptanu Choudhury
aaaa7cd7fd Fix merge conflicts 2015-10-28 08:54:29 -07:00
Kenjiro Nakayama
11a46aac53 Assign IP when network device is specified 2015-10-28 21:19:06 +09:00
Diptanu Choudhury
61ded1b1d5 Using the Go stdlib APIs to detect IP Address of a device 2015-10-27 14:14:25 -07:00
Kenjiro Nakayama
b85f114dff Set default network interface rather than eth0 for non-dev mode, and use loopback device for dev mode by default 2015-10-28 02:03:48 +09:00
Kenjiro Nakayama
5063b2a377 Set default network interface rather than eth0 2015-10-25 23:32:54 +09:00