cleanup debug statements

This commit is contained in:
Brian Akins 2017-07-26 18:40:56 -04:00
parent b467a537d5
commit 2643f1550f
2 changed files with 1 additions and 4 deletions

View file

@ -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,

View file

@ -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
}