可以将石墨(耳语)指标作为别名吗? [英] Can Graphite (whisper) metrics be aliased?
问题描述
有一个名为别名的函数,我尝试如下给出的
There is a function named alias, that I tried as given below
http://myhost:80/render?target=alias(my.src.metrics.endTime,"my.target.metrics.success_endTime")
但我想在 my.src.metrics.endTime
my.target.metrics.success_endTime >。因此 my.src ...
下的新值也可以通过 my.target ...
获得。 / p>
But I want to create my.target.metrics.success_endTime
persistent in the graphite for my.src.metrics.endTime
. so that new values under the my.src...
are also available via my.target...
.
推荐答案
但是,您不能在石墨用户界面(webapp)中配置持久别名,您可以在文件系统上创建符号链接,会像别名一样
However, you can't configure persistent aliases in graphite's UI (webapp), you may create symbolic link on the filesystem, that will behave like an alias
./graphite/whisper/my$ ll
drwxr-xr-x 6 graphite graphite 4096 Dec 28 2016 src/
./graphite/whisper/my$ ln -s src target
./graphite/whisper/my$ ll
drwxr-xr-x 6 graphite graphite 4096 Dec 28 2016 src/
lrwxrwxrwx 1 root root 4 Dec 28 2016 target -> src/
路径 my.target。*
其他解决方案是使用不同的前面板/仪表板UI(例如Grafana)并使用变量-> http://docs.grafana.org/reference/templating/
Other soltuion is to use different front/dashboard UI like Grafana and make use of variables - http://docs.grafana.org/reference/templating/
这篇关于可以将石墨(耳语)指标作为别名吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!