Skip to content

Commit

Permalink
cmd/scollector: Bug fix for DNS collector (#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhenderson-so authored and Craig Peterson committed Sep 28, 2016
1 parent f11c3e3 commit c7f582f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/scollector/collectors/dns_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ func c_dns_windows() (opentsdb.MultiDataPoint, error) {
}
} else { //Unique stat, we can put it straight away
if "" == p.Grouping {
Add(&md, "dns."+p.Category+"."+p.Metric, v.Value, opentsdb.TagSet{}, p.RateType, metadata.Count, p.Description)
Add(&md, "dns."+p.Category+"."+p.Metric, *v.Value, opentsdb.TagSet{}, p.RateType, metadata.Count, p.Description)
} else {
Add(&md, "dns."+p.Category+"."+p.Metric, v.Value, opentsdb.TagSet{"type": p.Grouping}, p.RateType, metadata.Count, p.Description)
Add(&md, "dns."+p.Category+"."+p.Metric, *v.Value, opentsdb.TagSet{"type": p.Grouping}, p.RateType, metadata.Count, p.Description)
}
}
}
}
for _, v := range dupes { //ForEach record in our added up duplicates
if p, ok := DNSStatPropertyMap[v.Name]; ok {
if "" == p.Grouping {
Add(&md, "dns."+p.Category+"."+p.Metric, v.Value, opentsdb.TagSet{}, p.RateType, metadata.Count, p.Description)
Add(&md, "dns."+p.Category+"."+p.Metric, *v.Value, opentsdb.TagSet{}, p.RateType, metadata.Count, p.Description)
} else {
Add(&md, "dns."+p.Category+"."+p.Metric, v.Value, opentsdb.TagSet{"type": p.Grouping}, p.RateType, metadata.Count, p.Description)
Add(&md, "dns."+p.Category+"."+p.Metric, *v.Value, opentsdb.TagSet{"type": p.Grouping}, p.RateType, metadata.Count, p.Description)
}
}

Expand Down

0 comments on commit c7f582f

Please sign in to comment.