Commit Graph

40 Commits (8dfd829fefc4e3124f717e6d969549945ee18320)

Author SHA1 Message Date
Matt Layher 302148fd69 *: apply gofmt -s
6 years ago
Ilya Gladyshev 922c17e119 added name label to all discovery metrics (#5002)
6 years ago
Simon Pasquier 8b91d39c43
discovery: send empty group on empty SD config (#4819)
6 years ago
Simon Pasquier a30348f1a4 discovery: add config label to discovered targets metric (#4753)
6 years ago
Goutham Veeramachaneni ffb7f829ec
Merge pull request #4730 from prometheus/release-2.4
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 48989d8996 discovery: add more tests
6 years ago
Krasi Georgiev ba7eb733e8 tidy up the discovery logs,updating loops and selects (#4556)
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
Paul Gier d24d2acd11 config: set target group source index during unmarshalling (#4245)
7 years ago
Callum Styan 03578d5df8 add example usage of SD adapter for converting unsupported SD type to filesd (#3720)
7 years ago
ferhat elmas ffa673f7d8 General simplifications (#3887)
7 years ago
Krasi Georgiev acc4197098 remove dicovery race for the context field
7 years ago
Frederic Branczyk 73e829137b
discovery: Cleanup ticker
7 years ago
Frederic Branczyk cfa0253ed8
discovery: Schedule updates to throttle
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 d12e6f29fc discovery manager ApplyConfig now takes a direct ServiceDiscoveryConfig so that it can be used for the notify manager
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
Krasi Georgiev 78ba5e62a6 few mote usefull comments
7 years ago
Krasi Georgiev cabce21b70 delete empty targets sets to avoid memory leaks
7 years ago
Krasi Georgiev abfd9f1920 nits
7 years ago
Krasi Georgiev 546c29af5b return early for nil target groups
7 years ago
Krasi Georgiev 77bf6bece0 discovery-manager comment update
7 years ago
Krasi Georgiev 135ea0f793 discovery manager - doesn't need sorting of the target groups so move it in the discovery manager tests as we only need it there.
7 years ago
Krasi Georgiev 638818a974 some Discoverers send nil targetgroup so need to check for it when updating a group
7 years ago
Krasi Georgiev 7e28397a2c discovery - handle Discoverers that send only target Group updates rather than all Targets on every update.
7 years ago
Shubheksha Jalan ec94df49d4 Refactor SD configuration to remove `config` dependency (#3629)
7 years ago
Krasi Georgiev 587dec9eb9 rebased and resolved conflicts with the new Discovery GUI page
7 years ago
Krasi Georgiev 80182a5d82 use poolKey as the pool map key to avoid multi dimensional maps
7 years ago
Krasi Georgiev 1ec76d1950 rearange the contexts variables and logic
7 years ago
Krasi Georgiev fe6c544532 some renaming and comments fixes.
7 years ago
Krasi Georgiev f5c2c5ff8f brake the start provider func so that can run unit tests against it.
7 years ago
Krasi Georgiev c5cb0d2910 simplify naming and API.
7 years ago
Krasi Georgiev 9c61f0e8a0 scrape pool doesn't rely on context as Stop() needs to be blocking to prevent Scrape loops trying to write to a closed TSDB storage.
7 years ago
Krasi Georgiev e405e2f1ea refactored discovery
7 years ago