Skip to content

Commit

Permalink
add ID tags to stats points (influxdata#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Cook authored Aug 10, 2016
1 parent a81eb46 commit 9f35195
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions global_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ func NewStatistics(name string, tags map[string]string) (string, *kexpvar.Map) {
value.Set(v)
tagsVar.Set(k, value)
}
// Always add ID tags
tagsVar.Set(ClusterIDVarName, ClusterIDVar)
tagsVar.Set(ServerIDVarName, ServerIDVar)
tagsVar.Set(HostVarName, HostVar)

m.Set("tags", tagsVar)

// Create and set the values entry used for actual stats.
Expand Down

0 comments on commit 9f35195

Please sign in to comment.