From f2df712166ef4e16e69d8aace76202619483c0f8 Mon Sep 17 00:00:00 2001 From: Krasi Georgiev Date: Wed, 29 Nov 2017 22:56:08 +0000 Subject: [PATCH] updated README --- discovery/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discovery/README.md b/discovery/README.md index a2899a35d..a4bdde9f3 100644 --- a/discovery/README.md +++ b/discovery/README.md @@ -133,9 +133,9 @@ the Prometheus server will be able to see them. A Service Discovery (SD) mechanism has to discover targets and provide them to Prometheus. We expect similar targets to be grouped together, in the form of a [`TargetGroup`](https://godoc.org/github.com/prometheus/prometheus/config#TargetGroup). The SD mechanism sends the targets down to prometheus as list of `TargetGroups`. -An SD mechanism has to implement the `TargetProvider` Interface: +An SD mechanism has to implement the `Discoverer` Interface: ```go -type TargetProvider interface { +type Discoverer interface { Run(ctx context.Context, up chan<- []*config.TargetGroup) } ```