Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
348 views
in Technique[技术] by (71.8m points)

alias - 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")

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....

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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/

Path my.target.* will be findable.

Other soltuion is to use different front/dashboard UI like Grafana and make use of variables - http://docs.grafana.org/reference/templating/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...