discard

package
v1.31.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 3 Imported by: 14

README

discard Output Plugin

This output plugin simply drops all metrics that are sent to it. It is only meant to be used for testing purposes.

Global configuration options

In addition to the plugin-specific configuration settings, plugins support additional global and plugin configuration settings. These settings are used to modify metrics, tags, and field or create aliases and configure ordering, etc. See the CONFIGURATION.md for more details.

Configuration

# Send metrics to nowhere at all
[[outputs.discard]]
  # no configuration

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discard

type Discard struct{}

func (*Discard) Close

func (d *Discard) Close() error

func (*Discard) Connect

func (d *Discard) Connect() error

func (*Discard) SampleConfig

func (*Discard) SampleConfig() string

func (*Discard) Write

func (d *Discard) Write(_ []telegraf.Metric) error

Jump to

Keyboard shortcuts

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