Documentation ¶
Index ¶
- Variables
- func GetCollectedMetrics() []halib.MetricsData
- func GetCollectedMetricsWithLimit(limit int) []halib.MetricsData
- func GetMetricConfig(configFile string) (halib.MetricConfig, error)
- func GetMetricDataBufferStatus(extended bool) map[string]int64
- func Metrics(configPath string) error
- func ParseMetricData(rawMetricdata string) (map[string]float64, int64, error)
- func SaveMetricConfig(config halib.MetricConfig, configFile string) error
- func SaveMetrics(now time.Time, metricsData []halib.MetricsData) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SensuPluginPaths is sensu plugin search paths. combined with `,` SensuPluginPaths = halib.DefaultSensuPluginPaths )
Functions ¶
func GetCollectedMetrics ¶
func GetCollectedMetrics() []halib.MetricsData
GetCollectedMetrics returns collected metrics. with no limit
func GetCollectedMetricsWithLimit ¶
func GetCollectedMetricsWithLimit(limit int) []halib.MetricsData
GetCollectedMetricsWithLimit returns collected metrics. with max `limit`
func GetMetricConfig ¶
func GetMetricConfig(configFile string) (halib.MetricConfig, error)
GetMetricConfig returns required metrics from config file
func GetMetricDataBufferStatus ¶
GetMetricDataBufferStatus returns metric collection status
func ParseMetricData ¶
ParseMetricData parse sensu-stype metrics output
func SaveMetricConfig ¶
func SaveMetricConfig(config halib.MetricConfig, configFile string) error
SaveMetricConfig save metric config to config file
func SaveMetrics ¶
func SaveMetrics(now time.Time, metricsData []halib.MetricsData) error
SaveMetrics save metrics to dbms
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.