Documentation
¶
Index ¶
- Constants
- func BuildCPUQuery(config Config) string
- func BuildMemoryQuery(config Config) string
- func BuildUrl(config Config, query string) string
- func Float2Time(tf float64) time.Time
- func ProbeCPU(cfgFilename string)
- func ProbeMemory(cfgFilename string)
- type Config
- type Entry
- type PromData
- type PromMetric
- type PromResp
- type PromResult
- type PromValue
Constants ¶
View Source
const PROBE_CPU = 2
View Source
const PROBE_MEMORY = 1
Variables ¶
This section is empty.
Functions ¶
func BuildCPUQuery ¶
func BuildMemoryQuery ¶
func Float2Time ¶
func ProbeMemory ¶
func ProbeMemory(cfgFilename string)
Types ¶
type Config ¶
type PromData ¶
type PromData struct {
Results []PromResult `json:"result"`
}
type PromMetric ¶
type PromMetric struct {
Container string `json:"container"`
}
type PromResult ¶
type PromResult struct {
Metric PromMetric `json:"metric"`
Value []PromValue `json:"value"`
}
Click to show internal directories.
Click to hide internal directories.