2017-09-30 07:13:08 +08:00
# Wavefront Output Plugin
2022-08-02 05:27:56 +08:00
This plugin writes to a [Wavefront ](https://www.wavefront.com ) instance or a
Wavefront Proxy instance over HTTP or HTTPS.
2017-09-30 07:13:08 +08:00
2021-11-25 02:47:33 +08:00
## Configuration
2017-09-30 07:13:08 +08:00
2022-05-25 22:48:59 +08:00
```toml @sample .conf
2022-04-08 05:55:03 +08:00
[[outputs.wavefront]]
2022-08-02 05:27:56 +08:00
## Url for Wavefront API or Wavefront Proxy instance.
2018-12-22 03:26:07 +08:00
url = "https://metrics.wavefront.com"
2017-09-30 07:13:08 +08:00
2022-08-02 05:27:56 +08:00
## Authentication Token for Wavefront. Required if using Direct Ingestion. Not required if using a Wavefront Proxy.
2021-11-25 02:47:33 +08:00
#token = "DUMMY_TOKEN"
2022-08-02 05:27:56 +08:00
## Maximum number of metrics to send per HTTP request. This value should be higher than the `metric_batch_size` . Default is 10,000. Values higher than 40,000 are not recommended.
2022-06-30 03:27:56 +08:00
# http_maximum_batch_size = 10000
2022-08-02 05:27:56 +08:00
## Deprecated. DNS name of the Wavefront server or Wavefront Proxy. Use the `url` field instead.
2018-12-22 03:26:07 +08:00
#host = "wavefront.example.com"
2022-08-02 05:27:56 +08:00
## Deprecated. Wavefront proxy port. Use the `url` field instead.
2018-12-22 03:26:07 +08:00
#port = 2878
2017-09-30 07:13:08 +08:00
## prefix for metrics keys
#prefix = "my.specific.prefix."
2018-12-22 03:26:07 +08:00
## whether to use "value" for name of simple fields. default is false
2017-09-30 07:13:08 +08:00
#simple_fields = false
2018-12-22 03:26:07 +08:00
## character to use between metric and field name. default is . (dot)
2017-09-30 07:13:08 +08:00
#metric_separator = "."
2018-12-22 03:26:07 +08:00
## Convert metric name paths to use metricSeparator character
## When true will convert all _ (underscore) characters in final metric name. default is true
2017-09-30 07:13:08 +08:00
#convert_paths = true
2019-04-03 02:47:25 +08:00
## 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-03 02:47:25 +08:00
#use_strict = false
2021-11-25 02:47:33 +08:00
2017-09-30 07:13:08 +08:00
## Use Regex to sanitize metric and tag names from invalid characters
## Regex is more thorough, but significantly slower. default is false
#use_regex = false
## point tags to use as the source name for Wavefront (if none found, host will be used)
2018-12-22 03:26:07 +08:00
#source_override = ["hostname", "address", "agent_host", "node_host"]
2017-09-30 07:13:08 +08:00
## whether to convert boolean values to numeric values, with false -> 0.0 and true -> 1.0. default is true
#convert_bool = true
2020-05-14 03:02:39 +08:00
2021-11-25 02:47:33 +08:00
## Truncate metric tags to a total of 254 characters for the tag name value. Wavefront will reject any
2020-05-14 03:02:39 +08:00
## data point exceeding this limit if not truncated. Defaults to 'false' to provide backwards compatibility.
#truncate_tags = false
2020-11-03 12:12:48 +08:00
## Flush the internal buffers after each batch. This effectively bypasses the background sending of metrics
2021-11-25 02:47:33 +08:00
## normally done by the Wavefront SDK. This can be used if you are experiencing buffer overruns. The sending
2020-11-03 12:12:48 +08:00
## of metrics will block for a longer time, but this will be handled gracefully by the internal buffering in
## Telegraf.
#immediate_flush = true
2017-09-30 07:13:08 +08:00
```
### Convert Path & Metric Separator
2021-11-25 02:47:33 +08:00
2022-04-21 23:45:47 +08:00
If the `convert_path` option is true any `_` in metric and field names will be
converted to the `metric_separator` value. By default, to ease metrics browsing
in the Wavefront UI, the `convert_path` option is true, and `metric_separator`
is `.` (dot). Default integrations within Wavefront expect these values to be
set to their defaults, however if converting from another platform it may be
desirable to change these defaults.
2017-09-30 07:13:08 +08:00
### Use Regex
2021-11-25 02:47:33 +08:00
Most illegal characters in the metric name are automatically converted to `-` .
2022-04-21 23:45:47 +08:00
The `use_regex` setting can be used to ensure all illegal characters are
properly handled, but can lead to performance degradation.
2017-09-30 07:13:08 +08:00
### Source Override
2021-11-25 02:47:33 +08:00
2022-04-21 23:45:47 +08:00
Often when collecting metrics from another system, you want to use the target
system as the source, not the one running Telegraf. Many Telegraf plugins will
identify the target source with a tag. The tag name can vary for different
plugins. The `source_override` option will use the value specified in any of the
listed tags if found. The tag names are checked in the same order as listed, and
if found, the other tags will not be checked. If no tags specified are found,
the default host tag will be used to identify the source of the metric.
2017-09-30 07:13:08 +08:00
### Wavefront Data format
2021-11-25 02:47:33 +08:00
2017-09-30 07:13:08 +08:00
The expected input for Wavefront is specified in the following way:
2021-11-25 02:47:33 +08:00
```text
2020-05-14 15:41:58 +08:00
< metric > < value > [< timestamp > ] < source | host > =< sourceTagValue > [tagk1=tagv1 ...tagkN=tagvN]
2017-09-30 07:13:08 +08:00
```
2022-04-21 23:45:47 +08:00
More information about the Wavefront data format is available
[here ](https://community.wavefront.com/docs/DOC-1031 )
2017-09-30 07:13:08 +08:00
### Allowed values for metrics
2021-11-25 02:47:33 +08:00
2022-04-21 23:45:47 +08:00
Wavefront allows `integers` and `floats` as input values. By default it also
maps `bool` values to numeric, false -> 0.0, true -> 1.0. To map `strings` use
the [enum ](../../processors/enum ) processor plugin.