Commit Graph

756 Commits (main)

Author SHA1 Message Date
Mike Eves ae081886fa Fix up tests
4 years ago
Mike Eves 7941b350ba Don't set label if ingressClassName is not set
4 years ago
Mike Eves 7e1111ff14 Update label from `class` to `class_name`
4 years ago
Austin Cawley-Edwards 301815e48b
Update prometheus-common and the consul HTTP client (#8913)
4 years ago
Mike Eves 7e65ad3e43 Add class label to kubernetes ingress discovery
4 years ago
Frederic Hemberger 39a87fd9d2 consul_sd: Add namespace support for Consul Enterprise
4 years ago
songjiayang b781b5cac5
Refactor file discovery init function (#8891)
4 years ago
TJ Hoplock dc22c65349
Add Linode Service Discovery (#8846)
4 years ago
kongxs 632678a461
Fix spelling mistake (#8879)
4 years ago
kcx2366425574 17e230a6f2 fix actuel to actual
4 years ago
Julien Pivotto e1774b6f83 Fix the computation of prometheus_sd_discovered_targets
4 years ago
Julien Pivotto 2a4b8e12bb
Merge pull request #8766 from Nick-Triller/consul-sd-always-send-targetgroups
4 years ago
Hu Shuai 9d7d818629
Fix golint issues caused by typos (#8769)
4 years ago
Nick Triller 15d328750a
Fix typo in SD docs
4 years ago
Nick Triller fddf4918c0
Send empty targetgroup if nothing discovered
4 years ago
n888 7c028d59c2
Add lightsail service discovery (#8693)
4 years ago
Marco Pracucci 4da5c25ea4
Upgrade prometheus/common to v0.21.0
4 years ago
Julien Pivotto 73237c04bf scaleway_sd_config: be more cautious with pointers
4 years ago
code1305 9c705ffdfb err fix if target creation fails
4 years ago
Bogdan Drutu d1ced85d7a
Bump k8s.io/* from 0.20.5 to 0.21.0 (#8714)
4 years ago
Julien Pivotto 5bce801a09
Rename discovery/dockerswarm to discovery/moby (#8691)
4 years ago
Julien Pivotto d680880b31
Fix main branch tests (#8669)
4 years ago
Robert Jacob b253056163
Implement Docker discovery (#8629)
4 years ago
Julien Pivotto 5a6d244b00 Scaleway SD: Add the ability to read token from file
4 years ago
Andrew Starr-Bochicchio 0858657516 digitalocean_sd: Expose vpc for use in relabelling.
4 years ago
Julien Pivotto bab0fb81ef Rename to or ID
4 years ago
Julien Pivotto d1c8550894 Scaleway SD: Add more labels to the instance role
4 years ago
Julien Pivotto 990d01631f Scaleway SD: Add instance test
4 years ago
Rémy Léone f690b811c5
add support for scaleway service discovery (#8555)
4 years ago
Rémy Léone 6962e44618
Discovery docs: add a pull requests examples section (#8556)
4 years ago
Julien Pivotto 93c6139bc1 Support follow_redirect
4 years ago
Julien Pivotto 8787f0aed7 Update common to support credentials type
4 years ago
Julien Pivotto 120a84da5d zookeeper: change upstream to github.com/go-zookeeper/zk
4 years ago
Matteo Valentini 44b78ef318 Add image name meta label to DO service discovery
4 years ago
fuling 829b939891 [fix] service discovery : change var "eps" to "pod
4 years ago
Alfred Krohmer fc8004eeec
EC2 SD: fix error handling of NewSessionWithOptions (#8356)
4 years ago
Björn Rabenstein 997bb7134f
Merge pull request #8338 from prometheus/release-2.24
4 years ago
Frederic Branczyk 19b0ec3baf
Merge pull request #8273 from fcddk/fcddk-k8s-enpoints-label
4 years ago
Matt Berther 31e86ed4bc prevent adding empty target when CNAME is encountered
4 years ago
Frederic Branczyk 611fa967cd
Merge pull request #8285 from ashumkin/label-selector
4 years ago
Alfred Krohmer 4efca5ab70
EC2 service discovery: reuse EC2 client instead of recreating it every time (#8311)
4 years ago
fcddk b270a1d6bf import strutil package
4 years ago
fcddk 617c56f55a add endponits labels metadata
4 years ago
Alexey Shumkin 73ddf603af
discovery/kubernetes: Fix valid label selector causing config error
4 years ago
Matt Berther acee998df6
CNAME responses can occur with "Type: A" dns_sd_config requests (#8216)
4 years ago
Muhammad Falak R Wani 587fd740be
discovery: ec2: expose IPv6 as label (#7086)
4 years ago
Julien Pivotto f8ba0ed906
Rebase docker swarm test (#8163)
4 years ago
Julien Pivotto 3509647462
Docker swarm: add filtering of services (#8074)
4 years ago
Julien Pivotto 6c56a1faaa
Testify: move to require (#8122)
4 years ago
Julien Pivotto 1282d1b39c
Refactor test assertions (#8110)
4 years ago
Julien Pivotto 4e5b1722b3
Move away from testutil, refactor imports (#8087)
4 years ago
Viren Negi 8dbfa14607
Add UserAgent to Hetzner Robot SD (#8008)
4 years ago
Viren Negi d253251266
Add UserAgent header to Eureka client (#8006)
4 years ago
Julien Pivotto 184a871638
Eureka: Fix service discovery when compiled in 32-bit (#7961)
4 years ago
Lukas Kämmerling c49d8680ce
Fix Hetzner Robot SD decoding with non HTTP 2xx (#7872)
4 years ago
kangwoo 7c0d5ae4e7
Add Eureka Service Discovery (#3369)
4 years ago
johncming a5beb627ff
some fixies for consul sd. (#7799)
4 years ago
Lukas Kämmerling b6955bf1ca
Add hetzner service discovery (#7822)
4 years ago
Andy Bursavich 4e6a94a27d
Invert service discovery dependencies (#7701)
4 years ago
Frederic Branczyk 06e2c2f804
Merge pull request #6838 from brancz/endpointslice
4 years ago
Julien Pivotto 9da53391d1
Merge pull request #7739 from prometheus/release-2.20
4 years ago
johncming 01d096567b
discovery: simplify code. (#7725)
4 years ago
Julien Pivotto 3a7120bc07 Consul: Reduce WatchTimeout to 2m and set it as timeout for requests
4 years ago
johncming 3c5ff27959
Update http header `User-Agent` in k8s and swarm discovery. (#7614)
4 years ago
Julien Pivotto 3e0ec3f8e1 Minor change
4 years ago
Julien Pivotto 924e7239b7
Docker Swarm SD: Support tasks and service without published ports (#7686)
4 years ago
Julien Pivotto 88bdb13c55
DNS SD: add srv record target and port meta labels (#7678)
4 years ago
Julien Pivotto e76c436e9c
Goleak in discoveries, scrape, rules (#7662)
4 years ago
Julien Pivotto e07415227a
discovery: check for nil triton_sd_config (#7671)
4 years ago
Julien Pivotto 93e9c010f3
Add more Go leak tests (#7652)
4 years ago
Julien Pivotto 89d2f5ec1d
Merge pull request #7635 from roidelapluie/sdtests2
4 years ago
Julien Pivotto 52cdcc2a3b
Add a check-list for new SD's (#7634)
4 years ago
Julien Pivotto a197508d09 Add docker swarm test
4 years ago
Björn Rabenstein 79620c78db
Merge pull request #7604 from roidelapluie/swarmsocket
4 years ago
johncming 6da680c7e4 discovery/config: add swarmsd config validation.
4 years ago
Julien Pivotto 49f48d8f65 Fix comment
4 years ago
Julien Pivotto 968c86d642 Fix comment
4 years ago
Julien Pivotto 45644c82f6 Docker swarm: enable unix socket
4 years ago
Julien Pivotto 93ecf0e14c
Refactor dockerswarm refresh for testing (#7541)
4 years ago
Julien Pivotto 27867412a7
openstack tests: use new test.Cleanup function (#7514)
4 years ago
John Bampton 98a69b77d1
Fix spelling (#7512)
4 years ago
Julien Pivotto e1f9816a33
Openstack: Reduce timeouts (#7507)
4 years ago
Steffen Neubauer 9c9b872087
OpenStack SD: Add availability config option, to choose endpoint type (#7494)
4 years ago
Julien Pivotto aa452d8ab4
digitalocean: use a safer pagination method (#7498)
4 years ago
Hu Shuai a94b570dc6
Add a unit test for newAzureResourceFromID in discovery/azure/azure.go. (#7484)
4 years ago
Julien Pivotto 59de58d380
Docker Swarm service discovery (#7420)
4 years ago
Pierre Souchay 1508678001
Use 10m timeouts for watches (#7423)
4 years ago
Julien Pivotto fb9a1a872e
DigitalOcean: limit refresh timeout (#7425)
4 years ago
Julien Pivotto c61141ce51
Add DigitalOcean service discovery (#7407)
4 years ago
Frederic Branczyk f6c5a75661 discovery/kubernetes: Add Kubernetes EndpointSlice discovery
5 years ago
Martin Lee b5d61fb66c
Add AMI to labels scraped during service discovery. (#7386)
5 years ago
Frederic Branczyk 7b1c0d6b66
discovery/kubernetes: Fix incorrect premature break of reading results
5 years ago
Tariq Ibrahim 06a6621b6c
update kubernetes to v1.18.x and update ingress apiVersion
5 years ago
Jop Zinkweg 1f69c38ba4
Add discovery support for triton compute nodes (#7250)
5 years ago
Guangming Wang 5b4006ac86
cleanup: remove unnacessary nil check before range (#7194)
5 years ago
ZouYu 2b7437d60e
Fix some warnings: 'redundant type from array, slice, or map composite literal' (#7109)
5 years ago
Marek Slabicki 8224ddec23
Capitalizing first letter of all log lines (#7043)
5 years ago
ZouYu f494426f73
fix warning redundant type from array, slice, or map composite literal (#7106)
5 years ago
Tariq Ibrahim 0730d6eb74
remove deprecated methods from the MetricProvider interface
5 years ago
Deepjyoti Mondal c38ca2ca95
Fix #6999 : Add architecture meta label for EC2 (#7000)
5 years ago
coding3min 4dfbf328f2
[OpenStack SD] Add HypervisorID meta labels about id (#6962)
5 years ago
Alex Gaganov df92a00838
Expose EC2 instance lifecycle as label (#6914)
5 years ago
Julien Pivotto c67f81937c
discovery: updateGroup should not create targets[poolKey] in the loop (#6903)
5 years ago
Mathilde Gilles 9b9c58aea8
[Consul] Add health label to metrics (#5313)
5 years ago
Frederic Branczyk d06f1034db discovery/kubernetes: Fix race in test setup
5 years ago
李国忠 029b45aa30
add service type metadata to kubernetes_sd_config service role #6496 (#6684)
5 years ago
Simon Pasquier 06c1a07d5a discovery/kubernetes: remove extraneous parameters from send()
5 years ago
Aleksandra Gacek 8e53c19f9c discovery/kubernetes: expose label_selector and field_selector
5 years ago
Grebennikov Roman b4445ff03f discovery/kubernetes: expose label_selector and field_selector
5 years ago
Simon Pasquier fe76ccbfe3
discovery/consul: fix logging of tags (#6783)
5 years ago
Ben Ye 1a18594176
keep kubernetes metrics in global vars (#6765)
5 years ago
Ben Ye 60527de355
keep consul service metrics in global variables (#6764)
5 years ago
Julien Pivotto cf42888e4d Fix order of testutil.Equals (#6695)
5 years ago
johncming 17683d074c discovery: fix bug that use rlock for read. (#5928)
5 years ago
Julien Pivotto 2b2eb79e8b Add windows tests for query logger (#6653)
5 years ago
Josh Soref 91d76c8023 Spelling (#6517)
5 years ago
Simon Pasquier 75470f86b4 discovery/kubernetes: fix client metrics
5 years ago
Callum Styan 7bf17b654c As per dev summit, SD moratorium has been lifted. (#6324)
5 years ago
Jean-Baptiste Le Duigou 5973227434 adding additional unit tests for getDataCenter() in consul (#6192)
5 years ago
Yao Zengzeng 1afa476b8a minor fix for making map (#6076)
5 years ago
Simon Pasquier 3acc3e856c
Adding unit test for target group (#6141)
5 years ago
Simon Pasquier 19ce6b7f5f
discovery: fix more error logs on context cancelation (#6133)
5 years ago
Jean-Baptiste Le Duigou 0939d566f3 Improve test by asserting on whole Target Group object
5 years ago
Jean-Baptiste Le Duigou 3309ffa482 Fix imports
5 years ago
Jean-Baptiste Le Duigou 9372a224b5 Improve unit tests for target group
5 years ago
Jean-Baptiste Le Duigou 1f9eb09e8e Improve unit tests for target group
5 years ago
Jean-Baptiste Le Duigou 5146bb14ef adding unit test for target group (#6138)
5 years ago
Jean-Baptiste Le Duigou 15de05d55e adding unit test for target group
5 years ago
Simon Pasquier 8ec6f02854 discovery: don't log errors on context cancelation
5 years ago
Nevill 7465f27ea5 Refactor on discovery/manager_test.go
5 years ago
陈谭军 c6928b5c6e fix-up typo unkown->unknown (#6055)
5 years ago
Simon Pasquier 80bc8553be
discovery/file: fix flaky tests (#5948)
5 years ago
Björn Rabenstein 52e0504f83
Merge pull request #5254 from nevill/fix-4890
5 years ago
Nevill 55661ab004 Set failedConfigs only once right after registerProviders finished
5 years ago
johncming 31a8ac3219 discovery/dns: add test case for SDConfig.UnmarshalYAML. (#6035)
5 years ago
Nevill 048f81218d Change prometheus_sd_configs_failed_total to Gauge
5 years ago
Harkishen Singh d98d4a9bf0 remove resetting of manager properties and init manager props under locking (#5979)
5 years ago
Tariq Ibrahim f0a5f88b95 [prometheus_sd/kubernetes]add new node address types for discover (#5902)
5 years ago
Bartek Płotka 5cb32d67f9
Merge pull request #5893 from prometheus/unify-tsdbutil
5 years ago
Bartek Plotka f0863a604e Removed extra tsdb/testutil after merge.
5 years ago
Julius Volz b5c833ca21
Update go.mod dependencies before release (#5883)
5 years ago
Björn Rabenstein 70ce3df23c
Merge pull request #5860 from tariq1890/variadic
5 years ago
Ganesh Vernekar 5ecef3542d
Cleanup after merging tsdb into prometheus
5 years ago
tariqibrahim df99d943ba pass multiple args to Registers.MustRegister method
5 years ago
Chris Marchbanks 529ccff07b
Remove all usages of stretchr/testify
5 years ago
AllenZMC 41151ca8dc fix mis-spelling in consul_test.go (#5836)
5 years ago
dzzg 938ca06057
fix wrong spells in ingress.go
5 years ago
Ye Ji 9229811c94 give each tree cache its unique channel to avoid multiple close on the same channel
5 years ago
beorn7 dd81912554 Add objectives to Summaries
6 years ago
sh0rez 8ba23fb336
fix(style): container_is_init to container_init
6 years ago
sh0rez 88b79bae64
chore(style): Comply with style guide, order list
6 years ago
sh0rez 6618f28fd7
test(discovery/kubernetes): TestPodDiscoveryInitContainer
6 years ago
sh0rez fbd5c6f310
test(discovery/kubernetes): add container_is_init label to tests
6 years ago
sh0rez cfa253ae06
feat(discovery/kubernetes): container_is_init label
6 years ago
sh0rez bea07fe866
feat(discovery/kubernetes): include InitContainers
6 years ago
Bevisy b7cdd3e840 Exhaust request body before closing it (#5596)
6 years ago
Dmitry Shmulevich d81df5609d fix nil pointer dereference in azure discovery (#5587)
6 years ago
Simon Pasquier 3441ecdea1 discovery/kubernetes: add node name and hostname to endpoints
6 years ago
Simon Pasquier 45506841e6
*: enable all default linters (#5504)
6 years ago
Frederic Branczyk 3cffd81035
Merge pull request #5520 from YaoZengzeng/service
6 years ago
YaoZengzeng 658b33808c The workqueue of service should be `service` other than `ingress`
6 years ago
Frederic Branczyk f874555a0d
Merge pull request #5486 from tariq1890/update_kubernetes
6 years ago
Björn Rabenstein 0be9388f8d
Merge pull request #5463 from prometheus/beorn7/templating
6 years ago
Tariq Ibrahim 00036cd1e5
update client-go,api,api-machinery and klog dependencies
6 years ago
Romain Baugue 95193fa027 Exhaust every request body before closing it (#5166) (#5479)
6 years ago
EarthmanT 35be8c9e25 Add azure public ip label (#5475)
6 years ago
Bjoern Rabenstein a92ef68dd8 Fix staticcheck errors
6 years ago
Simon Pasquier 559237cc4f discovery/kubernetes: fix missing label sanitization (#5462)
6 years ago
Brian Brazil 8ff6938fa4
Update dependencies. (#5449)
6 years ago
Simon Pasquier dafd1632a2 discovery/kubernetes: add present labels for labels/annotations (#5443)
6 years ago
Simon Pasquier 4f47806a7d
discovery/dns: fix slice with wrong length (#5432)
6 years ago
Kien Nguyen-Tuan 813b58367a [OpenStack SD] Add ProjectID and UserID meta labels (#5431)
6 years ago
Tariq Ibrahim 8fdfa8abea refine error handling in prometheus (#5388)
6 years ago
Simon Pasquier 782d00059a
discovery: factorize for SD based on refresh (#5381)
6 years ago
Tariq Ibrahim 0d7104b7eb discovery/azure:optimize iteration logic for VMScalesets, VMScalesetVMs, and VMs (#5363)
6 years ago
Tariq Ibrahim 5f933e99d0 discovery/azure: make local virtualMachine struct more generic by removing the go sdk field reference (#5350)
6 years ago
Mario Trangoni 5354ffff99 Fix some spelling issues (#5361)
6 years ago
Simon Pasquier 67385f356f
discovery/openstack: pass context to the OpenStack client (#5231)
6 years ago
Callum Styan 83c46fd549 update Consul vendor code so that catalog.ServiceMultipleTags can be (#5151)
6 years ago
Tariq Ibrahim 197e5ac597 docs: minor improvements to the service discovery README.md (#5296)
6 years ago
JoeWrightss e4b88704a6 Fix misspell in manager_test.go (#5279)
6 years ago
Simon Pasquier 1d2fc95b1c
discovery/marathon: pass context to the client (#5232)
6 years ago
Simon Pasquier e60d314f43
discovery/consul: pass current context to Consul queries (#5230)
6 years ago
Simon Pasquier 8f578d9c6b
discovery/ec2: pass context to the client (#5234)
6 years ago
Simon Pasquier 4997dcb4a1
discovery/gce: pass context to the client (#5233)
6 years ago
Simon Pasquier 9040dddd0c
discovery/azure: pass context to the client (#5255)
6 years ago
Simon Pasquier fe7a1bcfc6
discovery/triton: pass context to the client (#5235)
6 years ago
Björn Rabenstein ad29221a7b
Merge pull request #5020 from erikh/upgrade-miekg-dns
6 years ago
Simon Pasquier e72c875e63
config: fix Kubernetes config with empty API server (#5256)
6 years ago
Nguyen Hai Truong aed9ea144a Remove duplicated words in comments
6 years ago
Simon Pasquier c8a1a5a93c
discovery/kubernetes: fix support for password_file and bearer_token_file (#5211)
6 years ago
Erik Hollensbe be3c082539 discovery/dns/dns.go: fix handling of truncated dns records
6 years ago
Simon Pasquier f9462d5d44 discovery/consul: pass current context to Consul queries
6 years ago
JoeWrightss 4cb6c202ff Fix fmt.Errorf error message (#5199)
6 years ago
tariqibrahim b173de0c26 fix ineffectual assignment in dns.go
6 years ago
Jannick Fahlbusch ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎ 63f375e80a [FIX] Azure DS: Return error when request failed (#4719)
6 years ago
Tariq Ibrahim f4275d2352 Use the latest versions of azure go sdk and go-autorest (#5015)
6 years ago
Tariq Ibrahim bfcdba211f remove the prepended watch reactor from the fake k8s client (#5140)
6 years ago
Simon Pasquier 68e4c211f2
discovery/azure: more robust handling of go routines (#5106)
6 years ago
Matt Layher 302148fd69 *: apply gofmt -s
6 years ago
Simon Pasquier 22a1def98d
Merge pull request #5099 from prometheus/release-2.6
6 years ago
tommarute 9922c35a23 marathon-sd - use Tasks.Ports instead of PortDefinitions.Ports if RequirePorts is false (#5022) (#5026)
6 years ago
Sylvain Rabot d9f4a8c95f sd: Fix stuck Azure service discovery (#5088)
6 years ago
Kevin Bulebush 718344434c openstack_sd: Supporting application credential for authentication. (#4968)
6 years ago
Frederic Branczyk e9ae0b5a1b
Merge pull request #4927 from tariq1890/update_k8s
6 years ago
Fabian Reinartz ca93c8e19b
Merge pull request #4969 from prometheus/azuresubid
6 years ago
Simon Pasquier f678e27eb6
*: use latest release of staticcheck (#5057)
6 years ago
tariqibrahim aa94efe4b5 Merge branch 'master' of https://github.com/prometheus/prometheus into update_k8s
6 years ago
Fabian Reinartz 7a41038695 Add Azure tenant and subscription ID labels
6 years ago
Lv Jiawei ad22389218 Add ingress in UnmarshalYAML and init (#5035)
6 years ago
tariqibrahim 122b47caa0 address review comment in client_metrics
6 years ago
tariqibrahim 1e4e4c46ba Merge branch 'master' of https://github.com/prometheus/prometheus into update_k8s
6 years ago
Ilya Gladyshev 922c17e119 added name label to all discovery metrics (#5002)
6 years ago
Erik Hollensbe b94eea482c discovery/gce: oauth2.NoContext is deprecated, replace with context.Background() (#5024)
6 years ago
Marcel D. Juhnke c7d83b2b6a discovery: add support for Managed Identity authentication in Azure SD (#4590)
6 years ago
tariqibrahim 0d4b6e4e66 address review comments
6 years ago
Tariq Ibrahim de6f3b6af7 expose kubernetes service cluster ip (#4940)
6 years ago
JoeWrightss e8be31eed9 Fixs typo: 'possibliy' to 'possibly' (#4974)
6 years ago
Samuel Alfageme 240321acee Add taggedAddress to the labels in ConsulSD (#5001)
6 years ago
Tariq Ibrahim e3bdc463fa Revert "add logic to check if an azure VM is deallocated or not (#4908)" (#4980)
6 years ago
tariqibrahim 1fd438ed2b rebase and resolve merge conflicts
6 years ago
tariqibrahim 412ca33226 update kubernetes deps to v1.13.0
6 years ago
Julius Volz d28246e337
Fix config loading panics on nil pointer slice elements (#4942)
6 years ago
Simon Pasquier 8b91d39c43
discovery: send empty group on empty SD config (#4819)
6 years ago
Tariq Ibrahim 61cf4365d6 add logic to check if an azure VM is deallocated or not (#4908)
6 years ago
Serghei Anicheev 8e659a5109 Adding private_dns_name to the list of ec2 labels which can be used i… (#4693)
6 years ago
mengnan a5d39361ab discovery/azure: Fail hard when Azure authentication parameters are missing (#4907)
6 years ago
Ben Kochie c6399296dc
Fix spelling/typos (#4921)
6 years ago
Simon Pasquier 0bb810d126
discovery/marathon: fix leaked connections (#4915)
6 years ago
Timo Beckers bea302e061 marathon-sd - use 'hostPort' member of portMapping to construct target endpoints (#4887)
6 years ago
Daniele Sluijters f25a6baedb remote: Set User-Agent header in requests (#4891)
6 years ago
Sylvain Rabot 1fd3b33dcd Prevent Azure SD panic (fix #4779) (#4867)
6 years ago
Bryan Boreham cf37e1feb4 Add __meta_kubernetes_pod_phase label in discovery (#4824)
6 years ago
Silvio Gissi 6100f160ad EC2 Platform meta label (#4663)
6 years ago
Goutham Veeramachaneni f988af7235 Revert #4586 (#4766)
6 years ago
Simon Pasquier a30348f1a4 discovery: add config label to discovered targets metric (#4753)
6 years ago
Simon Pasquier 5824d6902d
openstack: fix client when using env variables (#4734)
6 years ago
Kien Nguyen-Tuan 9c5370fdfe Support discover instances from all projects (#4682)
6 years ago
Simon Pasquier c4a6acfb1e
*: move to go 1.11 (#4626)
6 years ago
Goutham Veeramachaneni ffb7f829ec
Merge pull request #4730 from prometheus/release-2.4
6 years ago
Simon Pasquier 3e6b9d43c3
Merge pull request #4720 from teresy/redundant-nil-check-slice
6 years ago
Rijnard van Tonder 9d102e3bff The nil check before the range loop is redundant
6 years ago
Richard Kiene b537f6047a Add ability to filter triton_sd targets by pre-defined groups (#4701)
6 years ago
Simon Pasquier a2a78d0a09 discovery/openstack: discover all interfaces (#4649)
6 years ago
Simon Pasquier e1e2821cca
Merge pull request #4654 from simonpasquier/openstack-tls
6 years ago
Jannick Fahlbusch ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎ f78e59577b [FIX] EC2 DS: Check for existence of OwnerID (#4672)
6 years ago
Simon Pasquier 657199af22 Address Krasi comments
6 years ago
Simon Pasquier 5df757fdd4 zookeeper: fix panic
6 years ago
Simon Pasquier 365931ea83 discovery: add metrics + send updates from one goroutine only
6 years ago
Simon Pasquier f2d43af820
Merge pull request #4582 from simonpasquier/add-discovery-tests
6 years ago
Simon Pasquier ff08c40091 discovery/openstack: support tls_config
6 years ago
Frederic Branczyk b75ec7e6ef
Merge pull request #4458 from FUSAKLA/k8s-sd-add-metrics
6 years ago
Timo Beckers 1c9fbd65c4 marathon-sd - change port gathering strategy, support for container networking (#4499)
6 years ago
Martin Chodur f2d037133e
feat: added more k8s SD metrics
6 years ago
Camille Janicki b035ea0ea9 Change discovery subpackages to not use testify in tests (#4612)
6 years ago
Simon Pasquier 128ff546b8 config: add test for OpenStack SD (#4594)
6 years ago
Tom Wilkie e3d36f4802 Don't import testing from non-test code. (#4595)
6 years ago
Bryan Boreham 968f657eaa Stop removing the final dot from rooted DNS names (#4586)
6 years ago
Simon Pasquier e7cee1b5ba Remove tests redundant with TestTargetUpdatesOrder
6 years ago
Simon Pasquier 7dc3f11306 WIP discovery: refactor TestTargetUpdatesOrder
6 years ago
Simon Pasquier 8fd891bf3f Speed up tests that were still using the 5s timeout
6 years ago
Simon Pasquier 8289501420 Address krasi's comments
6 years ago
Simon Pasquier 1cee5b5b06 Don't multiple the interval value by 1ms in the mock
6 years ago
Simon Pasquier 4900405d2f Refactor TestCoordinationWithReceiver() to work with any Discoverer
6 years ago
Simon Pasquier 0798f14e02 Add TestCoordinationWithEmptyProvider
6 years ago
Simon Pasquier 48989d8996 discovery: add more tests
6 years ago
Krasi Georgiev ba7eb733e8 tidy up the discovery logs,updating loops and selects (#4556)
6 years ago
Tariq Ibrahim f708fd5c99 Adding support for multiple azure environments (#4569)
6 years ago
Simon Pasquier 674c76adb8 discovery: coalesce identical SD configurations (#3912)
6 years ago
Krasi Georgiev 53691ae261 Simplify SD update throttling (#4523)
6 years ago
Fabian Reinartz f571b69010
Merge pull request #4514 from jkohen/ec2-targets
6 years ago
Javier Kohen 1c89984778 Expose EC2 instance owner as a discovery label.
6 years ago
Yecheng Fu d4eae8cc0c Wait for all internal discoveries are done before exiting. (#4508)
6 years ago
Fabian Reinartz b04ab71268
Merge pull request #4488 from jkohen/patch-3
6 years ago
Javier Kohen 403ac08ece Expose __meta_gce_instance_id as an integer (instead of raw bytes).
6 years ago
Javier Kohen 7e9549b398 Added __meta_gce_instance_id discovery label
6 years ago
Simon Pasquier b7054f3a78
Merge pull request #4443 from simonpasquier/fix-consul-connections-leak
6 years ago
Benji Visser 46fb4078a6 handle nil pointer in ec2 discovery (#4469)
6 years ago
Johannes Scheuermann f978f5bba3 Fixes #4202, correctly parse VMs with empty tags (#4450)
6 years ago
jojohappy e060f7755f To keep comment of NodeLegacyHostIP for k8s node address
6 years ago
jojohappy e81785d1a3 To keep depecrate k8s node NodeLegacyHostIP as local constant to keep compatibility for older k8s version
6 years ago
jojohappy 21e50a3f9d Upgrade k8s client to kubernetes-1.11.0
6 years ago
Simon Pasquier 1cd29f782c discovery/consul: close idle connections on stop
6 years ago
Johannes Scheuermann 7608ee87d0 Inital support for Azure VMSS (#4202)
6 years ago
José Martínez 791c13b142 discovery/ec2: Add primary_subnet_id label
6 years ago
José Martínez 5e4a33c890 discovery/ec2: Maintain order of subnet_id label
6 years ago
Jannick Fahlbusch ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎ 0be25f92e2 EC2 Discovery: Allow to set a custom endpoint (#4333)
6 years ago
Ivan Voronchihin 59d214d277 Update autorest vedoring (#4147)
6 years ago
Julius Volz 219e477272 Fix some (valid) lint errors (#4287)
6 years ago
Romain Baugue b41be4ef52 Discovery consul service meta (#4280)
6 years ago
Simon Pasquier f32acc0b7b discovery/openstack: remove unneeded assignment
6 years ago
Julius Volz 05d6d6a2e5
k8s SD: Fix "schema" -> "scheme" typo (#4371)
6 years ago
Krasi Georgiev a155b6d29d fix the zookeper race (#4355)
6 years ago
Dmitry Bashkatov 72327d98fb discovery/kubernetes/ingress: remove unnecessary check
6 years ago
Dmitry Bashkatov e2baf89eac discovery/kubernetes/ingress: fix scheme discovery (Closes #4327)
6 years ago
Dmitry Bashkatov 9cdca50bdd discovery/kubernetes/ingress: add more tests
6 years ago
Julius Volz 5cf0113762
Add "omitempty" to some SD config YAML field tags (#4338)
6 years ago
Simon Pasquier 6eab4bbca1 kubernetes_sd: fix namespace filtering (#4273)
7 years ago
Paul Gier d24d2acd11 config: set target group source index during unmarshalling (#4245)
7 years ago
Simon Pasquier 0e5e7f75cd discovery/file: fix logging (#4178)
7 years ago
Callum Styan 03578d5df8 add example usage of SD adapter for converting unsupported SD type to filesd (#3720)
7 years ago
Adam Shannon a22e1736b9 discovery/marathon: include url in fetchApps error (#4171)
7 years ago
Damien Lespiau e64037053d Expose controller kind and name to labelling rules
7 years ago
Nathan Graves 5b27996cb3 Include GCE labels during service discovery. Updated vendor files for Google API. (#4150)
7 years ago
beorn7 a4e4bec3fe Merge branch 'release-2.2'
7 years ago
Elif T. Kuş 57dcdfb15f Rewrote tests with testutil for several test files (#4086)
7 years ago
Yecheng Fu 2be543e65a Simplify some code and comments.
7 years ago
Yecheng Fu 46683dd67d Simplify code.
7 years ago
Yecheng Fu 3a253f796c Fix grammar in comments and add missing `expectedMaxItems` to let it
7 years ago
Yecheng Fu d73b0d3141 Move hasSynced interface and its implementations to *_test.go files.
7 years ago
Yecheng Fu 8ceb8f2ae8 Refactor Kubernetes Discovery Part 2: Refactoring
7 years ago
Adam Shannon 809881d7f5 support reading basic_auth password_file for HTTP basic auth (#4077)
7 years ago
Rohit Gupta 30c3e02864 Fixes #4090. Marathon service discovery for 5XX http response (#4091)
7 years ago
sev3ryn cc917aee7f fix of endless loop while doing Consul service discovery. (#4044)
7 years ago
Philippe Laflamme 2aba238f31 Use common HTTPClientConfig for marathon_sd configuration (#4009)
7 years ago
Manos Fokas 25f929b772 Yaml UnmarshalStrict implementation. (#4033)
7 years ago
albatross0 0245fd55bf Add a machine type label to GCE SD (#4032)
7 years ago
Kristiyan Nikolov be85ba3842 discovery/ec2: Support filtering instances in discovery (#4011)
7 years ago
Corentin Chary 60dafd425c consul: improve consul service discovery (#3814)
7 years ago
Ben Kochie 0d9fe18f5e Fix nil context staticcheck error.
7 years ago
Aaron Kirkbride c47fbcb626 Fix moved fsnotify dependency (#3995)
7 years ago
Jeeyoung Kim 5b962c5748 Revert "Feature: Allow getting credentials via EC2 role (#3343)" (#3985)
7 years ago
Matt Palmer 042090a6d3 [dns_sd] Send an EDNS0 query by default (#3586)
7 years ago
Yecheng Fu 56ed29fbf7 Map target infos of endpoints to prometheus meta labels. (#3770)
7 years ago
Marek Siarkowicz 86011047ca Validate required fields in sd configuration (#3911)
7 years ago
Krasi Georgiev 6b0e9ef183 Validate json parse for TargetGroup Unmarshal (#3614)
7 years ago
Krasi Georgiev 4fa7e719f4 race in Triton SD Test (#3885)
7 years ago
ferhat elmas ffa673f7d8 General simplifications (#3887)
7 years ago
Pedro Araújo 575f665944 Add OS type meta label to Azure SD (#3863)
7 years ago
Simon Pasquier 2072bbc824 Send update when pod's IP address is empty
7 years ago
Krasi Georgiev b75428ec19 rename package retrieve to scrape
7 years ago
Frederic Branczyk d3ae1ac40e
Merge pull request #3741 from krasi-georgiev/discovery-race
7 years ago
pasquier-s bde64cf5a6 Fix Kubernetes endpoints SD for empty subsets (#3660)
7 years ago
Krasi Georgiev 818dda72db updated the sd tests
7 years ago
Krasi Georgiev acc4197098 remove dicovery race for the context field
7 years ago
Frederic Branczyk 47538cf6ce
Merge pull request #3747 from prometheus/sched-update-throttle
7 years ago
Frederic Branczyk 73e829137b
discovery: Cleanup ticker
7 years ago
Ganesh Vernekar 66b0aa3b45 Fixed race condition in map iteration and map write in Discovery (#3735) (#3738)
7 years ago
Krasi Georgiev fe926e7829 update the discover tests
7 years ago
Callum Styan 7dc05538f7 docs: SD implementations do not have to only send new/changed target groups (#3713)
7 years ago
Frederic Branczyk cfa0253ed8
discovery: Schedule updates to throttle
7 years ago
zemek 8a01a0fbed Set consul server default to localhost:8500 (#3703)
7 years ago
Julius Volz 09e460a647
discovery: Rename file SD mtime metric (#3723)
7 years ago
Krasi Georgiev ec26751fd2 use mutexes for the discovery manager instead of a loop as this was a stupid idea
7 years ago
Krasi Georgiev 767faa44b6 fixed the tests
7 years ago
Krasi Georgiev d12e6f29fc discovery manager ApplyConfig now takes a direct ServiceDiscoveryConfig so that it can be used for the notify manager
7 years ago
Goutham Veeramachaneni b20a1b1b1b
Merge pull request #3654 from krasi-georgiev/discovery-handle-discoverer-updates
7 years ago
Krasi Georgiev 790cf30fcb remove uneeded check
7 years ago
Krasi Georgiev 38938ba493 comment nits
7 years ago
Krasi Georgiev febebcd49a more comments for the future ME, and reverted the Discovery manager execution changes as these were correct in the first place
7 years ago