简体   繁体   English

Nifi中没有jmx指标流程

[英]no jmx metrics process in nifi

I would like to extract kafka metrics and found that this could be done through JMX using jconsole. 我想提取kafka指标,发现可以通过使用jconsole的JMX来完成。 But I need to create a programmatical way in order to this and thought that nifi would be a great way to consume these metrics, but cannot find a process that does this. 但是我需要为此创建一种编程方式,并认为nifi是使用这些指标的好方法,但找不到能够做到这一点的过程。 Would someone suggest a way to do this or confirm there is no way to do this with nifi? 有人会建议一种方法或确认没有办法使用nifi吗? If not can someone please provide suggestions on how to do this or links to examples? 如果不能,请提供有关如何执行此操作的建议或示例链接?

I would recommend investigating performing JMX over HTTP operations. 我建议调查一下通过HTTP操作执行JMX。 There is a library called Jolokia which exposes JMX features using JSON over HTTP (here is a blog post describing one developer's approach). 有一个名为Jolokia的库,该库使用基于HTTP的JSON公开了JMX功能(这是一篇博客文章,描述了一个开发人员的方法)。 You could use InvokeHTTP processors to make these calls, or if you need to bundle multiple calls into logical atomic units, you could use ExecuteScript processors. 您可以使用InvokeHTTP处理器进行这些调用,或者如果需要将多个调用捆绑到逻辑原子单元中,则可以使用ExecuteScript处理器。 You could also potentially write a custom Controller Service or Reporting Task which provided this service to multiple components. 您还可能编写一个自定义的Controller ServiceReporting Task ,以向多个组件提供此服务。

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

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