poster

package
v0.0.0-...-d4e88f2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPPoster

type HTTPPoster struct {
	// contains filtered or unexported fields
}

func NewHTTPPoster

func NewHTTPPoster(tsdbHost string) *HTTPPoster

func (*HTTPPoster) Post

func (p *HTTPPoster) Post(metrics []Metric) error

type Metric

type Metric struct {
	Metric    string  `json:"metric"`
	Value     float64 `json:"value"`
	Timestamp int64   `json:"timestamp"`
	Tags      Tags    `json:"tags"`
}

type Tags

type Tags struct {
	Deployment string `json:"deployment"`
	Job        string `json:"job"`
	Index      string `json:"index"`
	IP         string `json:"ip"`
}

type TelnetPoster

type TelnetPoster struct {
	// contains filtered or unexported fields
}

func NewTelnetPoster

func NewTelnetPoster(tsdbHost string) *TelnetPoster

func (*TelnetPoster) Post

func (p *TelnetPoster) Post(metrics []Metric) error

Jump to

Keyboard shortcuts

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