 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func AggregateOnAttributeValue(aggregationType aggregateutil.AggregationType, attribute string, ...) (ottl.ExprFunc[ottlmetric.TransformContext], error)
- func AggregateOnAttributes(aggregationFunction aggregateutil.AggregationType, ...) (ottl.ExprFunc[ottlmetric.TransformContext], error)
- func DataPointFunctions() map[string]ottl.Factory[ottldatapoint.TransformContext]
- func MetricFunctions() map[string]ottl.Factory[ottlmetric.TransformContext]
- func Scale(args ScaleArguments) (ottl.ExprFunc[ottlmetric.TransformContext], error)
- type Processor
- type ScaleArguments
- type SumCountDataPoint
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var UseConvertBetweenSumAndGaugeMetricContext = featuregate.GlobalRegistry().MustRegister( "processor.transform.ConvertBetweenSumAndGaugeMetricContext", featuregate.StageStable, featuregate.WithRegisterDescription("When enabled will use metric context for conversion between sum and gauge"), featuregate.WithRegisterToVersion("v0.114.0"), )
Functions ¶
func AggregateOnAttributeValue ¶ added in v0.109.0
func AggregateOnAttributeValue(aggregationType aggregateutil.AggregationType, attribute string, values []string, newValue string) (ottl.ExprFunc[ottlmetric.TransformContext], error)
func AggregateOnAttributes ¶ added in v0.106.0
func AggregateOnAttributes(aggregationFunction aggregateutil.AggregationType, attributes ottl.Optional[[]string]) (ottl.ExprFunc[ottlmetric.TransformContext], error)
func DataPointFunctions ¶ added in v0.65.0
func DataPointFunctions() map[string]ottl.Factory[ottldatapoint.TransformContext]
func MetricFunctions ¶ added in v0.65.0
func MetricFunctions() map[string]ottl.Factory[ottlmetric.TransformContext]
func Scale ¶ added in v0.106.0
func Scale(args ScaleArguments) (ottl.ExprFunc[ottlmetric.TransformContext], error)
Types ¶
type Processor ¶ added in v0.52.0
type Processor struct {
	// contains filtered or unexported fields
}
    func NewProcessor ¶ added in v0.52.0
func NewProcessor(contextStatements []common.ContextStatements, errorMode ottl.ErrorMode, settings component.TelemetrySettings, metricFunctions map[string]ottl.Factory[ottlmetric.TransformContext], dataPointFunctions map[string]ottl.Factory[ottldatapoint.TransformContext]) (*Processor, error)
type ScaleArguments ¶ added in v0.106.0
type ScaleArguments struct {
	Multiplier float64
	Unit       ottl.Optional[ottl.StringGetter[ottlmetric.TransformContext]]
}
    type SumCountDataPoint ¶ added in v0.83.0
type SumCountDataPoint interface {
	Attributes() pcommon.Map
	Sum() float64
	Count() uint64
	StartTimestamp() pcommon.Timestamp
	Timestamp() pcommon.Timestamp
}
    SumCountDataPoint interface helps unify the logic for extracting data from different histogram types all supported metric types' datapoints implement it
       Source Files
      ¶
      Source Files
      ¶
    
- func_aggregate_on_attributes_metrics.go
- func_agregate_on_attribute_value_metrics.go
- func_convert_exponential_hist_to_explicit_hist.go
- func_convert_gauge_to_sum.go
- func_convert_sum_to_gauge.go
- func_convert_summary_count_val_to_sum.go
- func_convert_summary_quantile_val_to_gauge.go
- func_convert_summary_sum_val_to_sum.go
- func_copy_metric.go
- func_extract_count_metric.go
- func_extract_sum_metric.go
- func_scale.go
- functions.go
- processor.go
 Click to show internal directories. 
   Click to hide internal directories.