Documentation ¶
Index ¶
- func ComposeMetricGenFuncs(familyGens []FamilyGenerator) func(interface{}, []*marketplacev1beta1.MeterDefinition) []FamilyByteSlicer
- func ExtractMetricFamilyHeaders(families []FamilyGenerator) []string
- func GetAllMeterLabelsKeys(mdefs []*marketplacev1beta1.MeterDefinition) ([]string, []string)
- func GetMeterDefLabelsKeys(mdef *marketplacev1beta1.MeterDefinition) ([]string, []string)
- func MapMeterDefinitions(metrics []*kbsm.Metric, mdefs []*marketplacev1beta1.MeterDefinition) []*kbsm.Metric
- type FamilyByteSlicer
- type FamilyGenerator
- type MeterDefinitionFetcher
- type PrometheusData
- type PrometheusDataMap
- func (s *PrometheusDataMap) Add(obj interface{}, meterdefs []*marketplacev1beta1.MeterDefinition) error
- func (s *PrometheusDataMap) Get(obj interface{}) ([][]byte, bool, error)
- func (s *PrometheusDataMap) IsExpectedType(obj interface{}) bool
- func (s *PrometheusDataMap) Remove(obj interface{}) error
- func (s *PrometheusDataMap) WriteAll(w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposeMetricGenFuncs ¶
func ComposeMetricGenFuncs(familyGens []FamilyGenerator) func(interface{}, []*marketplacev1beta1.MeterDefinition) []FamilyByteSlicer
func ExtractMetricFamilyHeaders ¶
func ExtractMetricFamilyHeaders(families []FamilyGenerator) []string
ExtractMetricFamilyHeaders takes in a slice of FamilyGenerator metrics and returns the extracted headers.
func GetAllMeterLabelsKeys ¶
func GetAllMeterLabelsKeys(mdefs []*marketplacev1beta1.MeterDefinition) ([]string, []string)
func GetMeterDefLabelsKeys ¶
func GetMeterDefLabelsKeys(mdef *marketplacev1beta1.MeterDefinition) ([]string, []string)
func MapMeterDefinitions ¶
func MapMeterDefinitions(metrics []*kbsm.Metric, mdefs []*marketplacev1beta1.MeterDefinition) []*kbsm.Metric
Types ¶
type FamilyByteSlicer ¶
type FamilyByteSlicer interface {
ByteSlice() []byte
}
type FamilyGenerator ¶
type FamilyGenerator struct { GenerateMeterFunc func(interface{}, []*marketplacev1beta1.MeterDefinition) *kbsm.Family kbsmg.FamilyGenerator }
type MeterDefinitionFetcher ¶
type MeterDefinitionFetcher interface {
GetMeterDefinitions(interface{}) ([]*marketplacev1beta1.MeterDefinition, error)
}
type PrometheusData ¶
type PrometheusData struct {
// contains filtered or unexported fields
}
func ProvidePrometheusData ¶
func ProvidePrometheusData() *PrometheusData
func (*PrometheusData) Add ¶
func (p *PrometheusData) Add(obj interface{}, meterdefs []*marketplacev1beta1.MeterDefinition) error
func (*PrometheusData) Get ¶
func (p *PrometheusData) Get(name string) *PrometheusDataMap
func (*PrometheusData) Remove ¶
func (p *PrometheusData) Remove(obj interface{}) error
type PrometheusDataMap ¶
func ProvideMeterDefPrometheusData ¶
func ProvideMeterDefPrometheusData() *PrometheusDataMap
func ProvidePersistentVolumeClaimPrometheusData ¶
func ProvidePersistentVolumeClaimPrometheusData() *PrometheusDataMap
func ProvidePodPrometheusData ¶
func ProvidePodPrometheusData() *PrometheusDataMap
func ProvideServicePrometheusData ¶
func ProvideServicePrometheusData() *PrometheusDataMap
func (*PrometheusDataMap) Add ¶
func (s *PrometheusDataMap) Add(obj interface{}, meterdefs []*marketplacev1beta1.MeterDefinition) error
func (*PrometheusDataMap) Get ¶
func (s *PrometheusDataMap) Get(obj interface{}) ([][]byte, bool, error)
func (*PrometheusDataMap) IsExpectedType ¶
func (s *PrometheusDataMap) IsExpectedType(obj interface{}) bool
func (*PrometheusDataMap) Remove ¶
func (s *PrometheusDataMap) Remove(obj interface{}) error
Click to show internal directories.
Click to hide internal directories.