Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch Jmxtrans配置用于对同一写入程序的多个查询_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Apache Kafka_Jmxtrans - Fatal编程技术网 elasticsearch Jmxtrans配置用于对同一写入程序的多个查询,elasticsearch,apache-kafka,jmxtrans,elasticsearch,Apache Kafka,Jmxtrans" /> elasticsearch Jmxtrans配置用于对同一写入程序的多个查询,elasticsearch,apache-kafka,jmxtrans,elasticsearch,Apache Kafka,Jmxtrans" />

elasticsearch Jmxtrans配置用于对同一写入程序的多个查询

elasticsearch Jmxtrans配置用于对同一写入程序的多个查询,elasticsearch,apache-kafka,jmxtrans,elasticsearch,Apache Kafka,Jmxtrans,在使用jmxtrans为ApacheKafka到ElasticSearch设置度量报告时,我们编写了一个配置文件,用于查询大约50个度量 查询如下: { "obj" : "kafka.server:type=BrokerTopicMetrics,name=TotalFetchRequestsPerSec", "outputWriters" : [ { "@class" : "com.googlecode.jmxtrans.model.output.elastic.Elast

在使用jmxtrans为ApacheKafka到ElasticSearch设置度量报告时,我们编写了一个配置文件,用于查询大约50个度量

查询如下:

{ 
  "obj" : "kafka.server:type=BrokerTopicMetrics,name=TotalFetchRequestsPerSec", 
  "outputWriters" : [ { 
    "@class" : "com.googlecode.jmxtrans.model.output.elastic.ElasticWriter", 
    "connectionUrl": "http://elasticHost:9200" 
  }] 
}
由于它们中有很多都写入同一个目的地,在配置文件中有没有办法缩短这个时间


非常感谢您的帮助

您可以尝试在MBean路径中更加精确-
kafka.server:name=TotalFetchRequestsPerSec,topic=myoltopic,type=BrokerTopicMetrics

请看一个很好的例子-
jmxtrans
也支持
resultAlias

在这里,您可以找到一个列表,其中可能会方便您