dummyreceiver

package module
v0.0.0-...-f26a44e Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

README

Dummy Receiver

Status
stability alpha: metrics
Code Owners kyma-project/observability

Dummy Receiver is an OTel Collector receiver that generates dummy telemetry data. At the moment, it only supports metrics. It is useful for testing the OTel Collector pipeline.

How It Works

Dummy Receiver generates dummy metrics and sends them to the OTel Collector pipeline.

For the generated metrics, see documentation.md.

Configuration

See the following example configuration:

receivers:
  dummy:
    interval: 2s

Documentation

Overview

Package dummyReceiver generates dummy gauges.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParsingInterval  = errors.New("interval must be a valid duration string")
	ErrIntervalTooShort = errors.New("when defined, the interval has to be set to at least 1 minute (1m)")
)

Functions

func NewFactory

func NewFactory() receiver.Factory

NewFactory creates a factory for dummyReceiver receiver.

Types

type Config

type Config struct {
	// The number of metrics to generate per interval.
	Interval string `mapstructure:"interval"`
}

Config represents the receiver config settings within the collector's config.yaml

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks if the receiver configuration is valid

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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