mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-26 17:21:01 +00:00
cleanup debug statements
This commit is contained in:
parent
b467a537d5
commit
2643f1550f
2 changed files with 1 additions and 4 deletions
|
@ -318,7 +318,7 @@ func (b *Exporter) Listen(e <-chan Events) {
|
||||||
}
|
}
|
||||||
|
|
||||||
switch t {
|
switch t {
|
||||||
case "histogram":
|
case timerTypeHistogram:
|
||||||
histogram, err := b.Histograms.Get(
|
histogram, err := b.Histograms.Get(
|
||||||
b.suffix(metricName, "timer"),
|
b.suffix(metricName, "timer"),
|
||||||
prometheusLabels,
|
prometheusLabels,
|
||||||
|
|
|
@ -128,13 +128,10 @@ func (m *metricMapper) initFromString(fileContents string) error {
|
||||||
func (m *metricMapper) initFromYAMLString(fileContents string) error {
|
func (m *metricMapper) initFromYAMLString(fileContents string) error {
|
||||||
var n metricMapper
|
var n metricMapper
|
||||||
|
|
||||||
fmt.Println(fileContents)
|
|
||||||
|
|
||||||
if err := yaml.Unmarshal([]byte(fileContents), &n); err != nil {
|
if err := yaml.Unmarshal([]byte(fileContents), &n); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("%#v\n", n)
|
|
||||||
if n.Defaults.Buckets == nil || len(n.Defaults.Buckets) == 0 {
|
if n.Defaults.Buckets == nil || len(n.Defaults.Buckets) == 0 {
|
||||||
n.Defaults.Buckets = prometheus.DefBuckets
|
n.Defaults.Buckets = prometheus.DefBuckets
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue