Versions in this module Expand all Collapse all v0 v0.5.0 May 16, 2023 Changes in this version + var ConfigFile = "gcp2prom.yaml" + var Scale = map[string]ScalingFunc + type Configuration struct + Histogram []HistogramConf + OmitLabel []OmitLabelConf + Subsystem map[string]string + Suffix []*SuffixConf + System string + Unit map[string]string + func LoadConfig(path string) (Configuration, error) + func MustLoadConfig(path string) Configuration + func (c Configuration) GcpPrefixes() []string + func (c Configuration) MatchMetric(md *sd.MetricDescriptor) *MetricMatcher + type HistogramConf struct + For Selector + MaxBound float64 + MaxBuckets int + MinBound float64 + MinBuckets int + MinRatio float64 + type LongestFirst []string + func (p LongestFirst) Len() int + func (p LongestFirst) Less(i, j int) bool + func (p LongestFirst) Swap(i, j int) + type MetricMatcher struct + Kind mon.MetricKind + MD *sd.MetricDescriptor + Name string + SubSys string + Type mon.ValueType + Unit string + func (mm *MetricMatcher) HistogramLimits() (minBuckets int, minBound, minRatio, maxBound float64, maxBuckets int) + func (mm *MetricMatcher) OmitLabels() []string + func (mm *MetricMatcher) PromName() string + func (mm *MetricMatcher) Scaler() (ScalingFunc, string) + type OmitLabelConf struct + For Selector + Labels []string + type ScalingFunc func(float64) float64 + type Selector struct + Not string + Only string + Prefix []string + Suffix []string + Unit string + type SuffixConf struct + For Selector + Replace map[string]string