Documentation ¶
Index ¶
- Constants
- func GetMaxFops() uint
- func MakeFopBuckets() []uint64
- type Fop
- type GetCountersFn
- type MetricHistogram
- func (h *MetricHistogram) Clear()
- func (h *MetricHistogram) Collect(ch chan<- prometheus.Metric)
- func (h *MetricHistogram) Describe(ch chan<- *prometheus.Desc)
- func (h *MetricHistogram) Save(m prometheus.Metric)
- func (h *MetricHistogram) ToConstHistogram(m *types.FsMetrics, imageRef string) (prometheus.Metric, error)
Constants ¶
View Source
const ( Getattr = iota Readlink Open Release Read Statfs Getxattr Listxattr Opendir Lookup Readdir Readdirplus Access Forget BatchForget MaxFops )
Variables ¶
This section is empty.
Functions ¶
func GetMaxFops ¶
func GetMaxFops() uint
func MakeFopBuckets ¶
func MakeFopBuckets() []uint64
Types ¶
type GetCountersFn ¶
type MetricHistogram ¶
type MetricHistogram struct { Desc *prometheus.Desc Buckets []uint64 GetCounters GetCountersFn // contains filtered or unexported fields }
func (*MetricHistogram) Clear ¶ added in v0.5.0
func (h *MetricHistogram) Clear()
func (*MetricHistogram) Collect ¶
func (h *MetricHistogram) Collect(ch chan<- prometheus.Metric)
func (*MetricHistogram) Describe ¶
func (h *MetricHistogram) Describe(ch chan<- *prometheus.Desc)
Implement prometheus.Collector interface
func (*MetricHistogram) Save ¶
func (h *MetricHistogram) Save(m prometheus.Metric)
func (*MetricHistogram) ToConstHistogram ¶
func (h *MetricHistogram) ToConstHistogram(m *types.FsMetrics, imageRef string) (prometheus.Metric, error)
Click to show internal directories.
Click to hide internal directories.