discard

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 3 Imported by: 14

README

Discard Output Plugin

This plugin discards all metrics written to it and is meant for testing purposes.

⭐ Telegraf v1.2.0 🏷️ testing 💻 all

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 (*Discard) Close() error

func (*Discard) Connect

func (*Discard) Connect() error

func (*Discard) SampleConfig

func (*Discard) SampleConfig() string

func (*Discard) Write

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

Jump to

Keyboard shortcuts

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