简体   繁体   English

Crate db 指标与 jmx_exporter 的集成

[英]Crate db metrics integration with jmx_exporter

Hi I want crate db metrics like number of connections exposed via an api.嗨,我想要 crate db 指标,例如通过 api 公开的连接数。 I got to know that this can be done through crate/jmx_exporter( https://github.com/crate/jmx_exporter ).我知道这可以通过 crate/jmx_exporter( https://github.com/crate/jmx_exporter )来完成。 I have very little knowledge of java agents and jmx.我对 java 代理和 jmx 知之甚少。 Its not very clear in the link I mentioned how do we get crate db metrics exposed via api.在我提到的链接中,它不是很清楚我们如何通过 api 获得板条箱数据库指标。 I do not have any java application/repo connected to my crate db and my crate db is up on ubuntu 16.04.我没有任何 java 应用程序/存储库连接到我的板条箱数据库,我的板条箱数据库在 ubuntu 16.04 上。 Can someone help me how I can get the metrics exposed via api of the crated db hosted in my system?有人可以帮助我如何获取通过我系统中托管的 crated db 的 api 公开的指标吗? Do we require a java application for this?我们是否需要 java 申请?

You just need to download the jmx_exporter and set an environment variable with the respective location.您只需要下载 jmx_exporter 并使用相应的位置设置一个环境变量 However many metrics can also be collected from the sys tables.但是,也可以从sys表中收集许多指标。 eg sys.nodes contains information about connections例如sys.nodes包含有关连接的信息

Look at https://crate.io/docs/crate/reference/en/4.6/admin/system-information.html or run the following to get a list of all sys-tables查看https://crate.io/docs/crate/reference/en/4.6/admin/system-information.html或运行以下命令以获取所有系统表的列表

SELECT table_name FROM information_schema.tables
where table_schema = 'sys'
ORDER BY 1;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM