Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MappingProfile ¶
type MappingProfile struct {
Name string
Prefix string
Mappings []*MetricMapping
}
MappingProfile represent a group of mappings
type MetricMapper ¶
type MetricMapper struct {
Profiles []MappingProfile
// contains filtered or unexported fields
}
MetricMapper contains mappings and cache instance
func NewMetricMapper ¶
func NewMetricMapper(configProfiles []config.MappingProfile, cacheSize int) (*MetricMapper, error)
NewMetricMapper creates, validates, prepares a new MetricMapper
func (*MetricMapper) Map ¶
func (m *MetricMapper) Map(metricName string) *MapResult
Map returns a MapResult
type MetricMapping ¶
type MetricMapping struct {
// contains filtered or unexported fields
}
MetricMapping represent one mapping rule
Click to show internal directories.
Click to hide internal directories.