Documentation ¶
Index ¶
Constants ¶
const ( // Delimiter defines character separating category from value in a tag e.g. location:london Delimiter = ":" // Separator defines character separating tags in a list e.g. os:centos,location:sfo Separator = "," )
Variables ¶
This section is empty.
Functions ¶
func GetBaseTags ¶ added in v0.19.0
func GetBaseTags() []string
GetBaseTags returns the check.tags as a list if check.metric_streamtags is true ensuring that all metrics have, at a minimum, the same base set of tags
func PrepStreamTags ¶
PrepStreamTags accepts a comma delimited list of key:value pairs and returns a stream tag formatted spec or an error if there are issues with the format of the supplied tag list.
Types ¶
type JSONMetric ¶
type JSONMetric struct { Tags []string `json:"_tags"` Type string `json:"_type"` Value interface{} `json:"_value"` }
JSONMetric defines an individual metric received in JSON
type JSONMetrics ¶
type JSONMetrics map[string]JSONMetric
JSONMetrics holds list of JSON metrics received at /write receiver interface
type TaggedMetric ¶ added in v0.19.0
type TaggedMetric struct { Tags *Tags `json:"_tags"` Type string `json:"_type"` Value interface{} `json:"_value"` }
TaggedMetric definefs a tagged metric
type TaggedMetrics ¶ added in v0.19.0
type TaggedMetrics map[string]TaggedMetric
TaggedMetrics is a list of metrics with tags
type Tags ¶ added in v0.19.0
Tags aliases cgm's Tags to centralize definition
func FromList ¶ added in v0.19.0
FromList convert old style list of tags []string{"cat:val","cat:val",...} into a Tags structure
func FromString ¶ added in v0.19.0
FromString convert old style tag string spec "cat:val,cat:val,..." into a Tags structure