2019-06-12 04:06:55 +08:00
# Wavefront
2019-04-06 05:46:12 +08:00
2019-04-06 06:06:46 +08:00
The `wavefront` serializer translates the Telegraf metric format to the [Wavefront Data Format ](https://docs.wavefront.com/wavefront_data_format.html ).
2019-04-06 05:46:12 +08:00
2021-11-25 02:47:23 +08:00
## Configuration
2019-04-06 05:46:12 +08:00
```toml
[[outputs.file]]
files = ["stdout"]
## Use Strict rules to sanitize metric and tag names from invalid characters
2020-05-14 15:41:58 +08:00
## When enabled forward slash (/) and comma (,) will be accepted
2019-04-06 06:06:46 +08:00
# wavefront_use_strict = false
2019-04-06 05:46:12 +08:00
## point tags to use as the source name for Wavefront (if none found, host will be used)
2019-04-06 06:06:46 +08:00
# wavefront_source_override = ["hostname", "address", "agent_host", "node_host"]
2019-04-06 05:46:12 +08:00
## Data format to output.
## Each data format has its own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
data_format = "wavefront"
2021-12-15 06:04:30 +08:00
## Users who wish their prefix paths to not be converted may set the following:
## default behavior (enabled prefix/path conversion): prod.prefix.name.metric.name
## configurable behavior (disabled prefix/path conversion): prod.prefix_name.metric_name
# wavefront_disable_prefix_conversion = true
2019-04-06 05:46:12 +08:00
```
2021-11-25 02:47:23 +08:00
## Metrics
2019-04-06 05:46:12 +08:00
A Wavefront metric is equivalent to a single field value of a Telegraf measurement.
The Wavefront metric name will be: `<measurement_name>.<field_name>`
If a prefix is specified it will be honored.
Only boolean and numeric metrics will be serialized, all other types will generate
an error.
2021-11-25 02:47:23 +08:00
## Example
2019-04-06 05:46:12 +08:00
The following Telegraf metric
2021-11-25 02:47:23 +08:00
```text
2019-04-06 05:46:12 +08:00
cpu,cpu=cpu0,host=testHost user=12,idle=88,system=0 1234567890
```
will serialize into the following Wavefront metrics
2021-11-25 02:47:23 +08:00
```text
2019-04-06 05:46:12 +08:00
"cpu.user" 12.000000 1234567890 source="testHost" "cpu"="cpu0"
"cpu.idle" 88.000000 1234567890 source="testHost" "cpu"="cpu0"
"cpu.system" 0.000000 1234567890 source="testHost" "cpu"="cpu0"
```