Skip to content
Snippets Groups Projects
Commit f2df7121 authored by Krasi Georgiev's avatar Krasi Georgiev
Browse files

updated README

parent aca8f856
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
}
```
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment