Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LabelToString ¶
LabelToString consumes a k/v map and returns a sanitized []string{} with key=val pairs. In case the map is empty or all k/v pairs fail the sanitization test, an error is return.
func SanitizeTags ¶
SanitizeTags checks whether the tag is compliant with the rules defined in http://opentsdb.net/docs/build/html/user_guide/writing.html#metrics-and-tags. For starters only `^[a-zA-Z0-9\-\./]+$` is allowed. TODO: Add Unicode letters
func ToOpenTSDBv1 ¶
ToOpenTSDBv1 transforms the metrics(not yet Histograms/Summaries) to OpenTSDB line format (v1), returns an array of lines.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.