timestampprocessor

package module
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

Timestamp Processor for OpenTelemetry Collector

Supported pipeline types: metrics

The timestamp processor will round all timestamps in metrics streams to the nearest <duration>.

Examples:

processors:
  timestamp:
    round_to_nearest: 1s

Publishing a new version of this module

Please use semantic versioning standards when deciding on a new version number.

First, make sure that all changes are committed and pushed to the main branch.

Then:

go test ./...
git tag timestampprocessor/v1.4.0 # substitute the appropriate version
git push --follow-tags

To confirm that the published module is available:

go list -m github.com/honeycombio/opentelemetry-collector-configs/timestampprocessor@v1.4.0

Documentation

Overview

package timestampprocessor implements a processor for snapping timestamps to the nearest <duration>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ProcessorFactory

NewFactory returns a new factory for the Filter processor.

Types

type Config

type Config struct {
	config.ProcessorSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct

	RoundToNearest *time.Duration `mapstructure:"round_to_nearest"`
}

Config defines configuration for Resource processor.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks if the processor configuration is valid

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL