Documentation ¶
Overview ¶
Package metadata provides metadata information between bosun and OpenTSDB.
Index ¶
Constants ¶
View Source
const ( // Unknown is a not-yet documented rate type. Unknown RateType = "" // Gauge rate type. Gauge = "gauge" // Counter rate type. Counter = "counter" // Rate rate type. Rate = "rate" )
View Source
const ( // None is a not-yet documented unit. None Unit = "" A = "A" // Amps Alert = "alerts" Abort = "aborts" Bool = "bool" BitsPerSecond = "bits per second" Bytes = "bytes" BytesPerSecond = "bytes per second" C = "C" // Celsius Channel = "channels" Check = "checks" CHz = "CentiHertz" Connection = "connections" Consumer = "consumers" Context = "contexts" ContextSwitch = "context switches" Count = "" Document = "documents" Entropy = "entropy" Error = "errors" Event = "" Eviction = "evictions" Exchange = "exchanges" Fault = "faults" Flush = "flushes" Files = "files" Frame = "frames" Fraction = "fraction" Get = "gets" GetExists = "get exists" Interupt = "interupts" Item = "items" KBytes = "kbytes" Key = "keys" Load = "load" EMail = "emails" MHz = "MHz" // MegaHertz Megabit = "Mbit" Merge = "merges" Message = "messages" MilliSecond = "milliseconds" Node = "nodes" Ok = "ok" // "OK" or not status, 0 = ok, 1 = not ok Operation = "Operations" Packet = "packets" Page = "pages" Pct = "percent" // Range of 0-100. PerSecond = "per second" Process = "processes" Priority = "priority" Query = "queries" Queue = "queues" Redispatch = "redispatches" Refresh = "refreshes" Replica = "replicas" Retry = "retries" Response = "responses" Request = "requests" RPM = "RPM" // Rotations per minute. Second = "seconds" Segment = "segments" Server = "servers" Session = "sessions" Shard = "shards" Socket = "sockets" Suggest = "suggests" StatusCode = "status code" Syscall = "system calls" Thread = "threads" Timestamp = "timestamp" Transition = "transitions" V = "V" // Volts V10 = "tenth-Volts" Watt = "Watts" Weight = "weight" Yield = "yields" )
Variables ¶
This section is empty.
Functions ¶
func AddMetricMeta ¶
AddMetricMeta is a convenience function to set the main metadata fields for a metric. Those fields are rate, unit, and description. If you need to document tag keys then use AddMeta.
Types ¶
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"` }
Metasend is the struct for sending metadata to bosun.
Click to show internal directories.
Click to hide internal directories.