metrics.go 632 B

123456789101112131415
  1. // Copyright 2016 Circonus, Inc. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package circonusgometrics
  5. // SetMetricTags sets the tags for the named metric and flags a check update is needed
  6. func (m *CirconusMetrics) SetMetricTags(name string, tags []string) bool {
  7. return m.check.AddMetricTags(name, tags, false)
  8. }
  9. // AddMetricTags appends tags to any existing tags for the named metric and flags a check update is needed
  10. func (m *CirconusMetrics) AddMetricTags(name string, tags []string) bool {
  11. return m.check.AddMetricTags(name, tags, true)
  12. }