Variables#

Many sections in the manifest support variables. A variable is a simple structure consisting of a key and a value.

Example

1Variables:
2    - Key: DeviceName
3      Value: "MyDevice"

The value is usually a string, but may be any other data type.

To use a variable you will address it with `$key. So the variable as defined above can be used as:

 1Processors:
 2  - Name: "My processor"
 3    ...    
 4    Otel:
 5      Attributes:
 6        - Key: DeviceName
 7          Value: $DeviceName
 8      Metrics:
 9        - Name: "My $DeviceName metric"
10         ...

Variables can then be referred to in parts of the processors section. The parameters that can use variables are tagged accordingly in the documentation.

Currently the following parameters are supported:

  • Processors.Otel.Attributes.Value
  • Processors.Otel.Metrics.Name
  • Processors.Otel.Metrics.Attributes.Value
  • Processors.Otel.Logs.Name
  • Processors.Otel.Logs.Attributes.Value