package fs
import "github.com/containerd/nydus-snapshotter/pkg/metrics/types"
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 ¶
const ( Getattr = iota Readlink Open Release Read Statfs Getxattr Listxattr Opendir Lookup Readdir Readdirplus Access Forget BatchForget MaxFops )
Functions ¶
func GetMaxFops ¶
func GetMaxFops() uint
func MakeFopBuckets ¶
func MakeFopBuckets() []uint64
Types ¶
type Fop ¶
type Fop int
type GetCountersFn ¶
type MetricHistogram ¶
type MetricHistogram struct {
Desc *prometheus.Desc
Buckets []uint64
GetCounters GetCountersFn
// contains filtered or unexported fields
}
func (*MetricHistogram) Clear ¶
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)
Source Files ¶
Directories ¶
| Path | Synopsis |
|---|---|
| pkg/metrics/types/ttl |
- Version
- v0.15.15 (latest)
- Published
- Apr 17, 2026
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 hour ago –
Tools for package owners.