Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问:怎么返回多个指标的值(显示为一行),并可以根据其中一个指标的值来排序? #35

Open
lddlww opened this issue Jul 13, 2019 · 2 comments

Comments

@lddlww
Copy link

lddlww commented Jul 13, 2019

No description provided.

@lch0000
Copy link
Contributor

lch0000 commented Jul 15, 2019

指标采集进prometheus后就是一个个独立的指标,如果查询多个的话就需要通过grafana来汇总展示。
感觉你可能是想使用grafana中的Table Panel来做展示,如果是的话可以参考官方文档:https://grafana.com/docs/features/panels/table_panel/

如果我理解的不对的话请再仔细描述下你的具体需求~

@lddlww
Copy link
Author

lddlww commented Jul 15, 2019

谢谢;其实是跟排序有关,正常就像你说的是一个个独立的指标;但如果要接入平台的话,就需要把某一个实例如ip:port,中的cpu,memory,disk,io,network等都显示为一行,并且可以根据这些指标来进行排序,这个貌似需要根据其中某一个指标来先进行排序,之后再根据实例来查询其它指标的信息;这样就需要查询多次才能够得出数据;我的问题是能不能只查询一次就可以实现并排序

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants