Skip to content

Commit

Permalink
[exporter/signalfxexporter] Updated documentation in the SignalFX exp…
Browse files Browse the repository at this point in the history
…orter for translation rules (open-telemetry#7875)
  • Loading branch information
jvoravong authored Feb 21, 2022
1 parent d2fefb3 commit 522073a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions exporter/signalfxexporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@ The rule language is expressed in yaml mappings and is [documented here](./inter
* `aggregate_metric` - Aggregates a metric through removal of specified dimensions
* `calculate_new_metric` - Creates a new metric via operating on two consistuent ones
* `convert_values` - Convert float values to int for specified metric names
* `convert_values` - Convert float values to int or int to float for specified metric names
* `copy_metrics` - Creates a new metric as a copy of another
* `delta_metric` - Creates a new delta metric for a specified non-delta one
* `divide_int` - Scales a metric's integer value by a given factor
* `drop_dimensions` - Drops dimensions for specified metrics, or globally
* `drop_metrics` - Drops all metrics with a given name
* `multiply_float` - Scales a metric's integer value by a given float factor
* `multiply_int` - Scales a metric's integer value by a given int factor
* `multiply_float` - Scales a metric's float value by a given float factor
* `multiply_int` - Scales a metric's int value by a given int factor
* `rename_dimension_keys` - Renames dimensions for specified metrics, or globally
* `rename_metrics` - Replaces a given metric name with specified one
* `split_metric` - Splits a given metric into multiple new ones for a specified dimension
Expand Down
5 changes: 3 additions & 2 deletions exporter/signalfxexporter/internal/translation/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ const (
// Rule.ScaleFactorsInt key/values as metric_name/divisor
ActionDivideInt Action = "divide_int"

// ActionMultiplyFloat scales integer metric by dividing their values using
// ActionMultiplyFloat scales integer metric by multiplying their values using
// Rule.ScaleFactorsFloat key/values as metric_name/multiplying_factor
// This rule can only be applied to metrics that are a float value
ActionMultiplyFloat Action = "multiply_float"

// ActionConvertValues converts float metrics values to integer values using
// ActionConvertValues converts metric values from int to float or float to int
// Rule.TypesMapping key/values as metric_name/new_type.
ActionConvertValues Action = "convert_values"

Expand Down

0 comments on commit 522073a

Please sign in to comment.