diff --git a/exporter.go b/exporter.go index c00a4a8..36b87b3 100644 --- a/exporter.go +++ b/exporter.go @@ -318,7 +318,7 @@ func (b *Exporter) Listen(e <-chan Events) { } switch t { - case "histogram": + case timerTypeHistogram: histogram, err := b.Histograms.Get( b.suffix(metricName, "timer"), prometheusLabels, diff --git a/mapper.go b/mapper.go index 4d1e172..af861c4 100644 --- a/mapper.go +++ b/mapper.go @@ -128,13 +128,10 @@ func (m *metricMapper) initFromString(fileContents string) error { func (m *metricMapper) initFromYAMLString(fileContents string) error { var n metricMapper - fmt.Println(fileContents) - if err := yaml.Unmarshal([]byte(fileContents), &n); err != nil { return err } - fmt.Printf("%#v\n", n) if n.Defaults.Buckets == nil || len(n.Defaults.Buckets) == 0 { n.Defaults.Buckets = prometheus.DefBuckets }