From 7dc05538f795114bba9e7bd36130231fc56a0a1c Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Fri, 26 Jan 2018 14:03:11 -0800 Subject: [PATCH] docs: SD implementations do not have to only send new/changed target groups (#3713) --- discovery/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discovery/README.md b/discovery/README.md index a4bdde9f34..366891315c 100644 --- a/discovery/README.md +++ b/discovery/README.md @@ -140,7 +140,9 @@ type Discoverer interface { } ``` -Prometheus will call the `Run()` method on a provider to initialise the discovery mechanism. The mechanism will then send *all* the `TargetGroup`s into the channel. Now the mechanism will watch for changes and then send only changed and new `TargetGroup`s down the channel. +Prometheus will call the `Run()` method on a provider to initialise the discovery mechanism. The mechanism will then send *all* the `TargetGroup`s into the channel. +Now the mechanism will watch for changes. For each update it can send all `TargetGroup`s, or only changed and new `TargetGroup`s, down the channel. `Manager` will handle +both cases. For example if we had a discovery mechanism and it retrieves the following groups: