OpenTsdb:度量和标记信息中是否允许使用空格字符 [英] OpenTsdb: Is Space character allowed in Metric and tag information

查看:222
本文介绍了OpenTsdb:度量和标记信息中是否允许使用空格字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用openTsdb时遇到一个问题,即度量,tag(tagk)甚至值(tagv)中都不允许使用空格字符.有什么方法可以在tag的值中至少添加空格?

I was working with openTsdb and came across with the issue that space character is not allowed in metric, tag(tagk) and even the values(tagv). Is there any way we can add space atleast in the value of tag?

我还提到了: http://opentsdb.net/docs/build/html/user_guide/writing/index.html#metrics-and-tags

推荐答案

不允许使用空格.

根据您引用的文档:

仅允许以下字符:a到z,A到Z,0到9,-,_,.,/或Unicode字母(根据规范)

Only the following characters are allowed: a to z, A to Z, 0 to 9, -, _, ., / or Unicode letters (as per the specification)

我建议您使用'_'代替空格.

I suggest you should use '_' in stead of spaces.

这篇关于OpenTsdb:度量和标记信息中是否允许使用空格字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆