Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
18
plugins/processors/lookup/sample.conf
Normal file
18
plugins/processors/lookup/sample.conf
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Lookup a key derived from metrics in a static file
|
||||
[[processors.lookup]]
|
||||
## List of files containing the lookup-table
|
||||
files = ["path/to/lut.json", "path/to/another_lut.json"]
|
||||
|
||||
## Format of the lookup file(s)
|
||||
## Available formats are:
|
||||
## json -- JSON file with 'key: {tag-key: tag-value, ...}' mapping
|
||||
## csv_key_name_value -- CSV file with 'key,tag-key,tag-value,...,tag-key,tag-value' mapping
|
||||
## csv_key_values -- CSV file with a header containing tag-names and
|
||||
## rows with 'key,tag-value,...,tag-value' mappings
|
||||
# format = "json"
|
||||
|
||||
## Template for generating the lookup-key from the metric.
|
||||
## This is a Golang template (see https://pkg.go.dev/text/template) to
|
||||
## access the metric name (`{{.Name}}`), a tag value (`{{.Tag "name"}}`) or
|
||||
## a field value (`{{.Field "name"}}`).
|
||||
key = '{{.Tag "host"}}'
|
Loading…
Add table
Add a link
Reference in a new issue