Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime De courchelle authored and Yohann Prigent committed Jul 27, 2018
1 parent 7bbf0a6 commit 9b4429e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Prometheus Scaleway SD
# Prometheus SCW Service Discovery

prometheus-scw-sd retrieves your Scaleway server list and converts to Prometheus targets.

Expand Down Expand Up @@ -32,7 +32,7 @@ Using servers private IP, custom port and time interval in second:

## Config

Scaleway SD outputs a json file containing targets to scrape.
prometheus-scw-sd outputs a json file containing targets to scrape.
You need to include this file in your `prometheus.yml`.

```yml
Expand All @@ -45,7 +45,7 @@ scrape_configs:
## Labels
Prometheus SD scrape Scaleway servers tags as labels, as comma separated list of strings.
prometheus-scw-sd scrape Scaleway servers tags as labels, as comma separated list of strings.
This allows you to use regex substitution for relabelling.
We surround the separated list with the separator as well. This way regular expressions
in relabeling rules don't have to consider tag positions.
Expand All @@ -66,7 +66,7 @@ Move inside Custom SD folder:
cd $GOPATH/src/github.com/prometheus/prometheus/documentation/examples/custom-sd
```

Clone Scaleway SD:
Clone prometheus-scw-sd:
```
git clone https://github.com/scaleway/prometheus-scw-sd && cd scw-sd
```
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
private = a.Flag("private", "Use servers private IP.").Bool()
outputFile = a.Flag("output.file", "Output file for file_sd compatible file.").Default("scw_sd.json").String()
port = a.Flag("port", "Port on which to scrape metrics.").Default("9100").Int()
interval = a.Flag("time.interval", "Time in second to wait between each refresh.").Default("30").Int()
interval = a.Flag("time.interval", "Time in second to wait between each refresh.").Default("90").Int()
logger log.Logger

// tagsLabel is the name of the label containing the tags assigned to the target.
Expand Down

0 comments on commit 9b4429e

Please sign in to comment.