Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigTypeBool = "bool" ConfigTypeArray = "array" ConfigTypeString = "string" OptionString = "options" AttributesString = "attributes" Timestamp = "timestamp" )
Variables ¶
View Source
var Collectors = map[string]Creator{}
Functions ¶
func GetMetricOptions ¶
func GetMetricOptions() map[string]interface{}
func GetMetricTags ¶
func GetMetricTypeKey ¶
func GetMetricTypeKey() map[string]interface{}
func GetMetricUsages ¶
func GetMetricUsages() []Option
Types ¶
type Collector ¶
type Collector interface { // Name returns the name. Name() string // Tags returns available tags. Tags() []string // Usages returns usage information. Usages() string // Config returns config fields and options. Config() map[string]interface{} // Collect gathers metric infomration. Collect() ([]map[string]interface{}, error) }
Collector 收集metric�s的接口
type CollectorService ¶
Click to show internal directories.
Click to hide internal directories.