mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-22 15:30:59 +00:00
Made dogstatsd tag check consistent with previous logic
Signed-off-by: Greg Chambers <gregory.w.chambers@gmail.com>
This commit is contained in:
parent
7b4f7310ae
commit
ba68944bec
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ func (p *Parser) LineToEvents(line string, sampleErrors prometheus.CounterVec, s
|
||||||
|
|
||||||
labels := map[string]string{}
|
labels := map[string]string{}
|
||||||
metric := p.parseNameAndTags(elements[0], labels, tagErrors, logger)
|
metric := p.parseNameAndTags(elements[0], labels, tagErrors, logger)
|
||||||
usingDogStatsDTags := strings.Contains(line, "|#")
|
usingDogStatsDTags := strings.Contains(elements[1], "|#")
|
||||||
if usingDogStatsDTags && len(labels) > 0 {
|
if usingDogStatsDTags && len(labels) > 0 {
|
||||||
// using DogStatsD tags
|
// using DogStatsD tags
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue