newrelic

package
v1.17.8 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 9 Imported by: 0

README

New Relic output plugin

This plugins writes to New Relic Insights using the Metrics API.

To use this plugin you must first obtain an Insights API Key.

Telegraf minimum version: Telegraf 1.15.0

Configuration
[[outputs.newrelic]]
  ## New Relic Insights API key
  insights_key = "insights api key"

  ## Prefix to add to add to metric name for easy identification.
  # metric_prefix = ""

  ## Timeout for writes to the New Relic API.
  # timeout = "15s"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewRelic

type NewRelic struct {
	InsightsKey  string            `toml:"insights_key"`
	MetricPrefix string            `toml:"metric_prefix"`
	Timeout      internal.Duration `toml:"timeout"`

	Client http.Client `toml:"-"`
	// contains filtered or unexported fields
}

NewRelic nr structure

func (*NewRelic) Close

func (nr *NewRelic) Close() error

Close any connections to the Output

func (*NewRelic) Connect

func (nr *NewRelic) Connect() error

Connect to the Output

func (*NewRelic) Description

func (nr *NewRelic) Description() string

Description returns a one-sentence description on the Output

func (*NewRelic) SampleConfig

func (nr *NewRelic) SampleConfig() string

SampleConfig : return default configuration of the Output

func (*NewRelic) Write

func (nr *NewRelic) Write(metrics []telegraf.Metric) error

Write takes in group of points to be written to the Output

Jump to

Keyboard shortcuts

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