mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-29 18:50:59 +00:00
Merge pull request #118 from prometheus/grobie/readme-metrics-naming
Use _total suffix for counters
This commit is contained in:
commit
76f5f422b4
1 changed files with 7 additions and 6 deletions
|
@ -130,7 +130,7 @@ wildcard match in the matching line. That allows for dynamic rewrites, such as:
|
||||||
```yaml
|
```yaml
|
||||||
mappings:
|
mappings:
|
||||||
- match: test.*.*.counter
|
- match: test.*.*.counter
|
||||||
name: "${2}_counter"
|
name: "${2}_total"
|
||||||
labels:
|
labels:
|
||||||
provider: "$1"
|
provider: "$1"
|
||||||
```
|
```
|
||||||
|
@ -142,7 +142,7 @@ could be written as:
|
||||||
mappings:
|
mappings:
|
||||||
- match: test\.(\w+)\.(\w+)\.counter
|
- match: test\.(\w+)\.(\w+)\.counter
|
||||||
match_type: regex
|
match_type: regex
|
||||||
name: "${2}_counter"
|
name: "${2}_total"
|
||||||
labels:
|
labels:
|
||||||
provider: "$1"
|
provider: "$1"
|
||||||
```
|
```
|
||||||
|
@ -152,6 +152,7 @@ label names.
|
||||||
|
|
||||||
If the default metric help text is insufficient for your needs you may use the YAML
|
If the default metric help text is insufficient for your needs you may use the YAML
|
||||||
configuration to specify a custom help text for each mapping:
|
configuration to specify a custom help text for each mapping:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
mappings:
|
mappings:
|
||||||
- match: http.request.*
|
- match: http.request.*
|
||||||
|
|
Loading…
Reference in a new issue