backend

package
v0.0.0-...-721076f Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	ApiKey    string
	MetricUrl string
	HostUrl   string
	Hostname  string
	Port      int
	Database  string
	Username  string
	Password  string
	Type      string
	KongHost  string
	PollerUrl string
	NoArray   bool

	PollerTags KeyValue
	// contains filtered or unexported fields
}

Storage backend

func (*Backend) Disconnect

func (backend *Backend) Disconnect()

func (*Backend) Init

func (backend *Backend) Init(standardLogs *log.Logger, errorLogs *log.Logger) error

func (*Backend) SendHost

func (backend *Backend) SendHost(values []HostInfo, url string) error

func (*Backend) SendMetrics

func (backend *Backend) SendMetrics(metrics []Point)

func (*Backend) SendNetrics2tsdb

func (backend *Backend) SendNetrics2tsdb(values opentsdb.DataPoints, url string) error

func (*Backend) SendPollerMetrics

func (backend *Backend) SendPollerMetrics(url string) error

type HostInfo

type HostInfo struct {
	Id   uint
	Name string
	Info *libvirt.DomainInfo
}

type HostStuct

type HostStuct struct {
	Host  string
	Infos []HostInfo
}

type KeyValue

type KeyValue struct {
	PollerIp string
}

type Point

type Point struct {
	KvmHost   string
	Domain    string
	Group     string
	Desc      string
	Metric    string
	Tags      map[string]string
	Value     uint64
	Timestamp int64
}

Jump to

Keyboard shortcuts

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