Documentation ¶
Index ¶
- Variables
- func AvairableMetrics() map[MetricKey]Metric
- func ClkTck() float64
- func DefaultEnabledMetrics() map[MetricKey]bool
- type Metric
- type MetricKey
- type ProcGroupedMetric
- func (m *ProcGroupedMetric) Collect(k string) error
- func (m *ProcGroupedMetric) CollectFromProc(proc procfs.Proc) error
- func (m *ProcGroupedMetric) Describe() map[string]*prometheus.Desc
- func (m *ProcGroupedMetric) PushCollected(ch chan<- prometheus.Metric, descs map[string]*prometheus.Desc, grouper string, ...) error
- func (m *ProcGroupedMetric) RequiredWeight() int64
- func (m *ProcGroupedMetric) String() string
- type ProcIOMetric
- func (m *ProcIOMetric) Collect(k string) error
- func (m *ProcIOMetric) CollectFromProc(proc procfs.Proc) error
- func (m *ProcIOMetric) Describe() map[string]*prometheus.Desc
- func (m *ProcIOMetric) PushCollected(ch chan<- prometheus.Metric, descs map[string]*prometheus.Desc, grouper string, ...) error
- func (m *ProcIOMetric) RequiredWeight() int64
- func (m *ProcIOMetric) String() string
- type ProcProcsMetric
- func (m *ProcProcsMetric) Collect(k string) error
- func (m *ProcProcsMetric) CollectFromProc(proc procfs.Proc) error
- func (m *ProcProcsMetric) Describe() map[string]*prometheus.Desc
- func (m *ProcProcsMetric) PushCollected(ch chan<- prometheus.Metric, descs map[string]*prometheus.Desc, grouper string, ...) error
- func (m *ProcProcsMetric) RequiredWeight() int64
- func (m *ProcProcsMetric) String() string
- type ProcStatMetric
- func (m *ProcStatMetric) Collect(k string) error
- func (m *ProcStatMetric) CollectFromProc(proc procfs.Proc) error
- func (m *ProcStatMetric) Describe() map[string]*prometheus.Desc
- func (m *ProcStatMetric) PushCollected(ch chan<- prometheus.Metric, descs map[string]*prometheus.Desc, grouper string, ...) error
- func (m *ProcStatMetric) RequiredWeight() int64
- func (m *ProcStatMetric) String() string
- type ProcStatusMetric
- func (m *ProcStatusMetric) Collect(k string) error
- func (m *ProcStatusMetric) CollectFromProc(proc procfs.Proc) error
- func (m *ProcStatusMetric) Describe() map[string]*prometheus.Desc
- func (m *ProcStatusMetric) PushCollected(ch chan<- prometheus.Metric, descs map[string]*prometheus.Desc, grouper string, ...) error
- func (m *ProcStatusMetric) RequiredWeight() int64
- func (m *ProcStatusMetric) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var MetricKeys = []MetricKey{ ProcProcs, ProcGrouped, ProcStat, ProcIO, ProcStatus, }
Functions ¶
func AvairableMetrics ¶
func DefaultEnabledMetrics ¶ added in v0.1.1
Types ¶
type ProcGroupedMetric ¶ added in v0.8.0
ProcGroupedMetric is metric
func NewProcGroupedMetric ¶ added in v0.8.0
func NewProcGroupedMetric() *ProcGroupedMetric
func (*ProcGroupedMetric) Collect ¶ added in v0.8.0
func (m *ProcGroupedMetric) Collect(k string) error
func (*ProcGroupedMetric) CollectFromProc ¶ added in v0.8.0
func (m *ProcGroupedMetric) CollectFromProc(proc procfs.Proc) error
func (*ProcGroupedMetric) Describe ¶ added in v0.8.0
func (m *ProcGroupedMetric) Describe() map[string]*prometheus.Desc
func (*ProcGroupedMetric) PushCollected ¶ added in v0.8.0
func (m *ProcGroupedMetric) PushCollected(ch chan<- prometheus.Metric, descs map[string]*prometheus.Desc, grouper string, group string) error
func (*ProcGroupedMetric) RequiredWeight ¶ added in v0.8.0
func (m *ProcGroupedMetric) RequiredWeight() int64
func (*ProcGroupedMetric) String ¶ added in v0.8.0
func (m *ProcGroupedMetric) String() string
type ProcIOMetric ¶
ProcIOMetric is metric
func NewProcIOMetric ¶
func NewProcIOMetric() *ProcIOMetric
func (*ProcIOMetric) Collect ¶ added in v0.8.0
func (m *ProcIOMetric) Collect(k string) error
func (*ProcIOMetric) CollectFromProc ¶
func (m *ProcIOMetric) CollectFromProc(proc procfs.Proc) error
func (*ProcIOMetric) Describe ¶
func (m *ProcIOMetric) Describe() map[string]*prometheus.Desc
func (*ProcIOMetric) PushCollected ¶
func (m *ProcIOMetric) PushCollected(ch chan<- prometheus.Metric, descs map[string]*prometheus.Desc, grouper string, group string) error
func (*ProcIOMetric) RequiredWeight ¶ added in v0.5.0
func (m *ProcIOMetric) RequiredWeight() int64
func (*ProcIOMetric) String ¶
func (m *ProcIOMetric) String() string
type ProcProcsMetric ¶
ProcProcsMetric is metric
func NewProcProcsMetric ¶
func NewProcProcsMetric() *ProcProcsMetric
func (*ProcProcsMetric) Collect ¶ added in v0.8.0
func (m *ProcProcsMetric) Collect(k string) error
func (*ProcProcsMetric) CollectFromProc ¶
func (m *ProcProcsMetric) CollectFromProc(proc procfs.Proc) error
func (*ProcProcsMetric) Describe ¶
func (m *ProcProcsMetric) Describe() map[string]*prometheus.Desc
func (*ProcProcsMetric) PushCollected ¶
func (m *ProcProcsMetric) PushCollected(ch chan<- prometheus.Metric, descs map[string]*prometheus.Desc, grouper string, group string) error
func (*ProcProcsMetric) RequiredWeight ¶ added in v0.5.0
func (m *ProcProcsMetric) RequiredWeight() int64
func (*ProcProcsMetric) String ¶
func (m *ProcProcsMetric) String() string
type ProcStatMetric ¶
ProcStatMetric is metric
func (*ProcStatMetric) Collect ¶ added in v0.8.0
func (m *ProcStatMetric) Collect(k string) error
func (*ProcStatMetric) CollectFromProc ¶
func (m *ProcStatMetric) CollectFromProc(proc procfs.Proc) error
func (*ProcStatMetric) Describe ¶
func (m *ProcStatMetric) Describe() map[string]*prometheus.Desc
func (*ProcStatMetric) PushCollected ¶
func (m *ProcStatMetric) PushCollected(ch chan<- prometheus.Metric, descs map[string]*prometheus.Desc, grouper string, group string) error
func (*ProcStatMetric) RequiredWeight ¶ added in v0.5.0
func (m *ProcStatMetric) RequiredWeight() int64
func (*ProcStatMetric) String ¶
func (m *ProcStatMetric) String() string
type ProcStatusMetric ¶ added in v0.7.0
ProcStatusMetric is metric
func NewProcStatusMetric ¶ added in v0.7.0
func NewProcStatusMetric() *ProcStatusMetric
NewProcStatusMetric
func (*ProcStatusMetric) Collect ¶ added in v0.8.0
func (m *ProcStatusMetric) Collect(k string) error
func (*ProcStatusMetric) CollectFromProc ¶ added in v0.7.0
func (m *ProcStatusMetric) CollectFromProc(proc procfs.Proc) error
func (*ProcStatusMetric) Describe ¶ added in v0.7.0
func (m *ProcStatusMetric) Describe() map[string]*prometheus.Desc
func (*ProcStatusMetric) PushCollected ¶ added in v0.7.0
func (m *ProcStatusMetric) PushCollected(ch chan<- prometheus.Metric, descs map[string]*prometheus.Desc, grouper string, group string) error
func (*ProcStatusMetric) RequiredWeight ¶ added in v0.7.0
func (m *ProcStatusMetric) RequiredWeight() int64
func (*ProcStatusMetric) String ¶ added in v0.7.0
func (m *ProcStatusMetric) String() string
Click to show internal directories.
Click to hide internal directories.