Skip to content

Commit

Permalink
Fix mixups in metrics documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tomMoulard committed Feb 3, 2022
1 parent bcff8de commit 81b7648
Show file tree
Hide file tree
Showing 5 changed files with 194 additions and 73 deletions.
4 changes: 2 additions & 2 deletions docs/content/observability/metrics/datadog.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ metrics:
```toml tab="File (TOML)"
[metrics]
[metrics.datadog]
pushInterval = 10s
pushInterval = "10s"
```

```bash tab="CLI"
Expand All @@ -144,5 +144,5 @@ metrics:
```

```bash tab="CLI"
--metrics.datadog.prefix="traefik"
--metrics.datadog.prefix=traefik
```
38 changes: 19 additions & 19 deletions docs/content/observability/metrics/influxdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ InfluxDB database used when protocol is http.
```yaml tab="File (YAML)"
metrics:
influxDB:
database: "db"
database: db
```

```toml tab="File (TOML)"
Expand All @@ -91,7 +91,7 @@ InfluxDB retention policy used when protocol is http.
```yaml tab="File (YAML)"
metrics:
influxDB:
retentionPolicy: "two_hours"
retentionPolicy: two_hours
```

```toml tab="File (TOML)"
Expand All @@ -113,7 +113,7 @@ InfluxDB username (only with http).
```yaml tab="File (YAML)"
metrics:
influxDB:
username: "john"
username: john
```

```toml tab="File (TOML)"
Expand All @@ -135,7 +135,7 @@ InfluxDB password (only with http).
```yaml tab="File (YAML)"
metrics:
influxDB:
password: "secret"
password: secret
```

```toml tab="File (TOML)"
Expand Down Expand Up @@ -176,18 +176,18 @@ _Optional, Default=false_

Enable metrics on routers.

```toml tab="File (TOML)"
[metrics]
[metrics.influxDB]
addRoutersLabels = true
```

```yaml tab="File (YAML)"
metrics:
influxDB:
addRoutersLabels: true
```

```toml tab="File (TOML)"
[metrics]
[metrics.influxDB]
addRoutersLabels = true
```

```bash tab="CLI"
--metrics.influxdb.addrouterslabels=true
```
Expand Down Expand Up @@ -229,7 +229,7 @@ metrics:
```toml tab="File (TOML)"
[metrics]
[metrics.influxDB]
pushInterval = 10s
pushInterval = "10s"
```

```bash tab="CLI"
Expand All @@ -242,14 +242,6 @@ _Optional, Default={}_

Additional labels (influxdb tags) on all metrics.

```toml tab="File (TOML)"
[metrics]
[metrics.influxDB]
[metrics.influxDB.additionalLabels]
host = "example.com"
environment = "production"
```

```yaml tab="File (YAML)"
metrics:
influxDB:
Expand All @@ -258,6 +250,14 @@ metrics:
environment: production
```

```toml tab="File (TOML)"
[metrics]
[metrics.influxDB]
[metrics.influxDB.additionalLabels]
host = "example.com"
environment = "production"
```

```bash tab="CLI"
--metrics.influxdb.additionallabels.host=example.com --metrics.influxdb.additionallabels.environment=production
```

0 comments on commit 81b7648

Please sign in to comment.