且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

可以将石墨(耳语)指标作为别名吗?

更新时间:2023-12-05 11:28:22

但是,您不能在石墨用户界面(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/