Skip to content

Commit

Permalink
docs: document resource_to_telemetry_conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
clouedoc authored Jul 1, 2022
1 parent 5d6d02d commit 5a253d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exporter/prometheusremotewriteexporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ The following settings can be optionally configured:
- `enabled`: enable the sending queue
- `queue_size`: number of OTLP metrics that can be queued. Ignored if `enabled` is `false`
- `num_consumers`: minimum number of workers to use to fan out the outgoing requests.
- `resource_to_telemetry_conversion`
- `enabled` (default = false): If `enabled` is `true`, all the resource attributes will be converted to metric labels by default.

Example:

Expand All @@ -57,6 +59,8 @@ exporters:
directory: ./prom_rw # The directory to store the WAL in
buffer_size: 100 # Optional count of elements to be read from the WAL before truncating; default of 300
truncate_frequency: 45s # Optional frequency for how often the WAL should be truncated. It is a time.ParseDuration; default of 1m
resource_to_telemetry_conversion:
enabled: true # Convert resource attributes to metric labels
```
Example:
Expand Down

0 comments on commit 5a253d6

Please sign in to comment.