18 lines
886 B
Text
18 lines
886 B
Text
# 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"}}'
|