Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Apply standard tag before workflow tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kindermoumoute committed Dec 15, 2016
1 parent b2b0669 commit 708da9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions control/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,9 @@ func addStandardAndWorkflowTags(m core.Metric, allTags map[string]map[string]str
if tags == nil {
tags = map[string]string{}
}
// apply standard tag
tags[core.STD_TAG_PLUGIN_RUNNING_ON] = hostname

// apply tags from workflow
for ns, nsTags := range allTags {
if strings.HasPrefix(m.Namespace().String(), ns) {
Expand All @@ -633,8 +636,6 @@ func addStandardAndWorkflowTags(m core.Metric, allTags map[string]map[string]str
}
}
}
// apply standard tag
tags[core.STD_TAG_PLUGIN_RUNNING_ON] = hostname

metric := plugin.MetricType{
Namespace_: m.Namespace(),
Expand Down

0 comments on commit 708da9f

Please sign in to comment.