Simon Pasquier
e1e2821cca
Merge pull request #4654 from simonpasquier/openstack-tls
...
discovery/openstack: support tls_config
2018-10-05 18:11:55 +02:00
Simon Pasquier
657199af22
Address Krasi comments
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-28 12:29:24 +02:00
Simon Pasquier
365931ea83
discovery: add metrics + send updates from one goroutine only
...
The added metrics are:
* prometheus_sd_discovered_targets
* prometheus_sd_received_updates_total
* prometheus_sd_updates_delayed_total
* prometheus_sd_updates_total
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-27 15:59:42 +02:00
Simon Pasquier
f2d43af820
Merge pull request #4582 from simonpasquier/add-discovery-tests
...
discovery: add more tests
2018-09-27 15:18:42 +02:00
Simon Pasquier
ff08c40091
discovery/openstack: support tls_config
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-25 14:31:32 +02:00
Frederic Branczyk
b75ec7e6ef
Merge pull request #4458 from FUSAKLA/k8s-sd-add-metrics
...
feat: added more k8s SD metrics
2018-09-21 13:10:48 +02:00
Timo Beckers
1c9fbd65c4
marathon-sd - change port gathering strategy, support for container networking ( #4499 )
...
* marathon-sd - change port gathering strategy, add support for container networking
- removed unnecessary error check on HTTPClientConfig.Validate()
- renamed PortDefinitions and PortMappings to PortDefinition and PortMapping respectively
- extended data model for extra parsed fields from Marathon json
- support container networking on Marathon 1.5+ (target Task.IPAddresses.x.Address)
- expanded test suite to cover all new cases
- test: cancel context when reading from doneCh before returning from function
- test: split test suite into Ports/PortMappings/PortDefinitions
Signed-off-by: Timo Beckers <timo@incline.eu>
2018-09-21 11:53:04 +01:00
Martin Chodur
f2d037133e
feat: added more k8s SD metrics
...
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
2018-09-20 22:28:51 +02:00
Camille Janicki
b035ea0ea9
Change discovery subpackages to not use testify in tests ( #4612 )
...
* Change discovery subpackages to not use testify in tests
Signed-off-by: Camille Janicki <camille.janicki@gmail.com>
* Remove testify suite from vendor dir
Signed-off-by: Camille Janicki <camille.janicki@gmail.com>
2018-09-18 17:35:22 +02:00
Simon Pasquier
128ff546b8
config: add test for OpenStack SD ( #4594 )
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-13 21:44:27 +05:30
Tom Wilkie
e3d36f4802
Don't import testing from non-test code. ( #4595 )
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2018-09-13 16:03:26 +05:30
Bryan Boreham
968f657eaa
Stop removing the final dot from rooted DNS names ( #4586 )
...
Removing a final dot changes the meaning of the name and can cause
extra DNS lookups as the resolver traverses its search path.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2018-09-13 15:28:38 +05:30
Simon Pasquier
e7cee1b5ba
Remove tests redundant with TestTargetUpdatesOrder
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 17:56:53 +02:00
Simon Pasquier
7dc3f11306
WIP discovery: refactor TestTargetUpdatesOrder
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:15:03 +02:00
Simon Pasquier
8fd891bf3f
Speed up tests that were still using the 5s timeout
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:13:15 +02:00
Simon Pasquier
8289501420
Address krasi's comments
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:13:15 +02:00
Simon Pasquier
1cee5b5b06
Don't multiple the interval value by 1ms in the mock
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:13:15 +02:00
Simon Pasquier
4900405d2f
Refactor TestCoordinationWithReceiver() to work with any Discoverer
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:13:15 +02:00
Simon Pasquier
0798f14e02
Add TestCoordinationWithEmptyProvider
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:13:15 +02:00
Simon Pasquier
48989d8996
discovery: add more tests
...
Co-authored-by: Camille Janicki <camille.janicki@gmail.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:13:15 +02:00
Krasi Georgiev
ba7eb733e8
tidy up the discovery logs,updating loops and selects ( #4556 )
...
* tidy up the discovery logs,updating loops and selects
few objects renamings
removed a very noise debug log on the k8s discovery. It would be usefull
to show some summary rather than every update as this is impossible to
follow.
added most comments as debug logs so each block becomes self
explanatory.
when the discovery receiving channel is full will retry again on the
next cycle.
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
* add noop logger for the SD manager tests.
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
* spelling nits
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
2018-09-05 17:02:47 +05:30
Tariq Ibrahim
f708fd5c99
Adding support for multiple azure environments ( #4569 )
...
Signed-off-by: Tariq Ibrahim <tariq.ibrahim@microsoft.com>
2018-09-04 17:55:40 +02:00
Simon Pasquier
674c76adb8
discovery: coalesce identical SD configurations ( #3912 )
...
* discovery: coalesce identical SD configurations
Instead of creating as many SD providers as declared in the
configuration, the discovery manager merges identical configurations
into the same provider and keeps track of the subscribers. When
the manager receives target updates from a SD provider, it will
broadcast the updates to all interested subscribers.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-01 08:51:31 +01:00
Krasi Georgiev
53691ae261
Simplify SD update throttling ( #4523 )
...
* simplfied SD updates throtling
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
* add default to catch cases when we don't have new updates.
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
2018-08-27 17:12:11 +02:00
Fabian Reinartz
f571b69010
Merge pull request #4514 from jkohen/ec2-targets
...
Expose EC2 instance owner as a discovery label.
2018-08-20 08:43:44 +02:00
Javier Kohen
1c89984778
Expose EC2 instance owner as a discovery label.
...
This exposes the OwnerID field of the DescribeInstances respons as .
Signed-off-by: Javier Kohen <jkohen@google.com>
2018-08-17 11:30:18 -04:00
Yecheng Fu
d4eae8cc0c
Wait for all internal discoveries are done before exiting. ( #4508 )
...
Signed-off-by: Yecheng Fu <cofyc.jackson@gmail.com>
2018-08-17 18:50:22 +05:30
Fabian Reinartz
b04ab71268
Merge pull request #4488 from jkohen/patch-3
...
Populate __meta_gce_instance_id discovery label
2018-08-11 09:52:28 +02:00
Javier Kohen
403ac08ece
Expose __meta_gce_instance_id as an integer (instead of raw bytes).
...
Signed-off-by: Javier Kohen <jkohen@google.com>
2018-08-10 16:21:46 -04:00
Javier Kohen
7e9549b398
Added __meta_gce_instance_id discovery label
...
Populated from instance.ID. I will follow up with a change to the documentation.
Signed-off-by: Javier Kohen <jkohen@google.com>
2018-08-10 11:57:55 -04:00
Simon Pasquier
b7054f3a78
Merge pull request #4443 from simonpasquier/fix-consul-connections-leak
...
discovery/consul: close idle connections on stop
2018-08-10 17:43:39 +02:00
Benji Visser
46fb4078a6
handle nil pointer in ec2 discovery ( #4469 )
...
This handles a nil pointer that was being accessed in EC2 discovery.
Fixes : #4441
Signed-off-by: noqcks <benny@noqcks.io>
2018-08-07 08:35:22 +01:00
Johannes Scheuermann
f978f5bba3
Fixes #4202 , correctly parse VMs with empty tags ( #4450 )
...
Signed-off-by: Johannes M. Scheuermann <joh.scheuer@gmail.com>
2018-08-02 10:10:17 +01:00
jojohappy
e060f7755f
To keep comment of NodeLegacyHostIP for k8s node address
...
Signed-off-by: jojohappy <sarahdj0917@gmail.com>
2018-08-02 10:25:28 +08:00
jojohappy
e81785d1a3
To keep depecrate k8s node NodeLegacyHostIP as local constant to keep compatibility for older k8s version
...
Signed-off-by: jojohappy <sarahdj0917@gmail.com>
2018-08-02 10:25:28 +08:00
jojohappy
21e50a3f9d
Upgrade k8s client to kubernetes-1.11.0
...
Signed-off-by: jojohappy <sarahdj0917@gmail.com>
2018-08-02 10:25:27 +08:00
Simon Pasquier
1cd29f782c
discovery/consul: close idle connections on stop
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-08-01 17:26:52 +02:00
Johannes Scheuermann
7608ee87d0
Inital support for Azure VMSS ( #4202 )
...
* Inital support for Azure VMSS
Signed-off-by: Johannes Scheuermann <johannes.scheuermann@inovex.de>
* Add documentation for the newly introduced label
Signed-off-by: Johannes M. Scheuermann <joh.scheuer@gmail.com>
2018-08-01 12:52:21 +01:00
José Martínez
791c13b142
discovery/ec2: Add primary_subnet_id label
...
Signed-off-by: José Martínez <xosemp@gmail.com>
2018-07-25 09:20:58 +01:00
José Martínez
5e4a33c890
discovery/ec2: Maintain order of subnet_id label
...
Signed-off-by: José Martínez <xosemp@gmail.com>
2018-07-25 09:20:58 +01:00
Jannick Fahlbusch ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎
0be25f92e2
EC2 Discovery: Allow to set a custom endpoint ( #4333 )
...
Allowing to set a custom endpoint makes it easy to monitor targets on non AWS providers with EC2 compliant APIs.
Signed-off-by: Jannick Fahlbusch <git@jf-projects.de>
2018-07-18 10:48:14 +01:00
Ivan Voronchihin
59d214d277
Update autorest vedoring ( #4147 )
...
Signed-off-by: bege13mot <bege13mot@gmail.com>
2018-07-18 05:24:15 +01:00
Julius Volz
219e477272
Fix some (valid) lint errors ( #4287 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-07-18 05:07:33 +01:00
Romain Baugue
b41be4ef52
Discovery consul service meta ( #4280 )
...
* Upgrade Consul client
* Add ServiceMeta to the labels in ConsulSD
Signed-off-by: Romain Baugue <romain.baugue@elwinar.com>
2018-07-18 05:06:56 +01:00
Simon Pasquier
f32acc0b7b
discovery/openstack: remove unneeded assignment
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-07-15 12:37:57 +01:00
Julius Volz
05d6d6a2e5
k8s SD: Fix "schema" -> "scheme" typo ( #4371 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-07-12 16:12:32 +02:00
Krasi Georgiev
a155b6d29d
fix the zookeper race ( #4355 )
...
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
2018-07-06 08:39:38 +01:00
Dmitry Bashkatov
72327d98fb
discovery/kubernetes/ingress: remove unnecessary check
...
Signed-off-by: Dmitry Bashkatov <dbashkatov@gmail.com>
2018-07-04 15:47:11 +03:00
Dmitry Bashkatov
e2baf89eac
discovery/kubernetes/ingress: fix scheme discovery ( Closes #4327 )
...
Signed-off-by: Dmitry Bashkatov <dbashkatov@gmail.com>
2018-07-04 13:28:44 +03:00
Dmitry Bashkatov
9cdca50bdd
discovery/kubernetes/ingress: add more tests
...
Signed-off-by: Dmitry Bashkatov <dbashkatov@gmail.com>
2018-07-04 13:28:44 +03:00