telegrafClient

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 4 Imported by: 0

README

Telegraf Client

Go client for sending metrics to telegraf

Designed to work with telegraf socket listener plugin

Sends data in JSON format

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Server   string
	Tags     map[string]string
	Protocol string
}

func (Client) Write

func (c Client) Write(metrics Metric) []byte

type Metric

type Metric struct {
	Measurement map[string]string
	Tags        map[string]string
}

Jump to

Keyboard shortcuts

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