Merge pull request #7279 from influxdata/js-7278-fix-engine-tags-in-stats

Fix engine tags in stats
pull/7286/head
Jonathan A. Sternberg 2016-09-09 17:51:54 -05:00 committed by GitHub
commit b1d074c019
1 changed files with 2 additions and 1 deletions

View File

@ -184,9 +184,10 @@ func (s *Shard) Statistics(tags map[string]string) []models.Statistic {
}
seriesN, _ := s.engine.SeriesCount()
tags = s.defaultTags.Merge(tags)
statistics := []models.Statistic{{
Name: "shard",
Tags: s.defaultTags.Merge(tags),
Tags: tags,
Values: map[string]interface{}{
statWriteReq: atomic.LoadInt64(&s.stats.WriteReq),
statWriteReqOK: atomic.LoadInt64(&s.stats.WriteReqOK),