Versions in this module Expand all Collapse all v0 v0.7.0 Mar 14, 2024 v0.6.0 Dec 22, 2023 v0.5.0 Aug 17, 2023 v0.4.0 Jun 20, 2023 v0.3.0 Sep 9, 2022 v0.2.0 Sep 20, 2021 v0.1.0 Jun 23, 2021 Changes in this version + const CacheIdAll + const L2 + const L3 + const RdtContainerAnnotation + const RdtPodAnnotation + const RdtPodAnnotationContainerPrefix + const RootClassAlias + const RootClassName + func ContainerClassFromAnnotations(containerName string, containerAnnotations, podAnnotations map[string]string) (string, error) + func DiscoverClasses(resctrlGroupPrefix string) error + func GetMonFeatures() map[MonResource][]string + func Initialize(resctrlGroupPrefix string) error + func IsQualifiedClassName(name string) bool + func MonSupported() bool + func NewCollector() (prometheus.Collector, error) + func RegisterCustomPrometheusLabels(names ...string) + func SetConfig(c *Config, force bool) error + func SetConfigFromData(data []byte, force bool) error + func SetConfigFromFile(path string, force bool) error + func SetLogger(l grclog.Logger) + type CacheIdCatConfig struct + Code CacheProportion + Data CacheProportion + Unified CacheProportion + func (c *CacheIdCatConfig) UnmarshalJSON(data []byte) error + type CacheIdMbaConfig []MbProportion + type CacheProportion string + type CatConfig map[string]CacheIdCatConfig + func (c *CatConfig) UnmarshalJSON(data []byte) error + type CatOptions struct + Optional bool + type Config struct + Options Options + Partitions map[string]struct{ ... } + type CtrlGroup interface + CreateMonGroup func(name string, annotations map[string]string) (MonGroup, error) + DeleteMonGroup func(name string) error + DeleteMonGroups func() error + GetMonGroup func(name string) (MonGroup, bool) + GetMonGroups func() []MonGroup + func GetClass(name string) (CtrlGroup, bool) + func GetClasses() []CtrlGroup + type KubernetesOptions struct + DenyContainerAnnotation bool + DenyPodAnnotation bool + type MbOptions struct + Optional bool + type MbProportion string + type MbaConfig map[string]CacheIdMbaConfig + func (c *MbaConfig) UnmarshalJSON(data []byte) error + type MonData struct + L3 MonL3Data + type MonGroup interface + GetAnnotations func() map[string]string + Parent func() CtrlGroup + type MonL3Data map[uint64]MonLeafData + type MonLeafData map[string]uint64 + type MonResource string + const MonResourceL3 + type Options struct + L2 CatOptions + L3 CatOptions + MB MbOptions + type ResctrlGroup interface + AddPids func(pids ...string) error + GetMonData func() MonData + GetPids func() ([]string, error) + Name func() string