metadata

package
v0.0.0-...-7afe134 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2014 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown RateType = ""
	Gauge            = "gauge"
	Counter          = "counter"
	Rate             = "rate"
)
View Source
const (
	None           Unit = ""
	A                   = "A" // Amps
	Bool                = "bool"
	Bytes               = "bytes"
	BytesPerSecond      = "bytes per second"
	C                   = "C" // Celsius
	CHz                 = "CentiHertz"
	ContextSwitch       = "context switches"
	Count               = ""
	Entropy             = "entropy"
	Event               = ""
	Fault               = "faults"
	Interupt            = "interupts"
	KBytes              = "kbytes"
	Load                = "load"
	MHz                 = "MHz" // MegaHertz
	Megabit             = "Mbit"
	MilliSecond         = "milliseconds"
	Ok                  = "ok" // "OK" or not status, 0 = ok, 1 = not ok
	Operation           = "Operations"
	Page                = "pages"
	Pct                 = "percent" // Range of 0-100.
	PerSecond           = "per second"
	Process             = "processes"
	RPM                 = "RPM" // Rotations per minute.
	Second              = "seconds"
	Socket              = "sockets"
	StatusCode          = "status code"
	Syscall             = "system calls"
	V                   = "V" // Volts
	V_10                = "tenth-Volts"
)

Variables

This section is empty.

Functions

func AddMeta

func AddMeta(metric string, tags opentsdb.TagSet, name string, value interface{}, setHost bool)

func Init

func Init(u *url.URL, debug bool) error

Types

type Metakey

type Metakey struct {
	Metric string
	Tags   string
	Name   string
}

func (Metakey) TagSet

func (m Metakey) TagSet() opentsdb.TagSet

type Metasend

type Metasend struct {
	Metric string          `json:",omitempty"`
	Tags   opentsdb.TagSet `json:",omitempty"`
	Name   string          `json:",omitempty"`
	Value  interface{}
	Time   time.Time `json:",omitempty"`
}

type RateType

type RateType string

type Unit

type Unit string

Jump to

Keyboard shortcuts

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