简体   繁体   English

OpenStack的Ceilometer计量通知导出到kafka-最有效的方法

[英]OpenStack's Ceilometer metering notifications export to kafka - Most efficient way

as in the subject I need to put the defined metrics' measures on a kafka topic in order to feed our monitoring system. 就像本主题一样,我需要将定义的指标的度量放在kafka主题上,以便提供给我们的监控系统。 I've seen that Ceilometer's Kafka publisher is deprecated so it's not a deal, but it's possible to: 我已经看到Ceilometer的Kafka发布者已被弃用,所以这没什么大不了的,但是有可能:

  • configure the publisher for writing to a file; 配置发布者以写入文件;
  • use a notifier like amqp, even if in this case is not clear if I've to setup an external broker. 使用类似amqp的通知程序,即使在这种情况下(如果我必须设置一个外部代理)也不清楚。

Both solutions seem compliant with Kafka-Connect. 两种解决方案似乎都与Kafka-Connect兼容。 Can anybody share his/her experience about this stuff? 谁能分享他/她在这方面的经验? OpenStack's documentation is a little poor about this topic (at least for me). OpenStack的文档对此主题有些欠缺(至少对我而言)。 Any suggestion would be of help. 任何建议都会有所帮助。 Thanks for your time ny 谢谢你的时间

As you said, kafka publisher was deprecated in very new version due to adapt ceilometer-gnocchi solution. 如您所说,由于采用了ceilometer-gnocchi解决方案,kafka Publisher已被弃用在非常新的版本中。 But this doesn't mean that you can not use the deprecated code and former abilities. 但这并不意味着您不能使用已过时的代码和以前的功能。

You can just configure kafka publisher in pipeline.yaml file directly. 您可以直接在pipeline.yaml文件中配置kafka Publisher。

---
sources:
    - name: meter_kafka
      interval: 600
      meters:
          - "*"
      sinks:
          - kafka_sink
sinks:
    - name: kafka_sink
      transformers:
      publishers:
          - kafka://[kafka_broker_ip]:[kafka_broker_port]?topic=[topic]

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

相关问题 与ElasticSearch中的文档相比,通过Kafka创建传入文档的唯一列表的最有效方法是什么? - What is the most efficient way of creating a unique list of incoming documents through Kafka when compared with those in ElasticSearch? 使用分区为日期的文件从kafka写入hdfs的最有效方法是什么 - What is most efficient way to write from kafka to hdfs with files partitioning into dates Kafka 流中最有效的线程数 - Most efficient number of threads in Kafka streams 如何进行最有效的 Kafka 健康检查控制? - How can I make the most efficient Kafka healtcheck control? kafka忽略自己产生的消息的有效方法 - kafka efficient way to ignore self produced messages KafkaJS - 找到偏移最有效的方法 - KafkaJS - Find offset most efficient way 如何在Kafka流中高效处理主题TB数据 - How to process topic TBs of data in an efficient way in kafka streams 有没有一种有效的方法可以外部连接多个(超过 2 个)kafka 主题? - Is there an efficient way to outer join several (more than 2) kafka topics? 从火花流写入kafka的最简单方法是什么 - What is the most simple way to write to kafka from spark stream 有没有办法使用 kafka-node 模块连接到 EventHub 的 Kafka? - Is there a way to connect to EventHub's Kafka using kafka-node module?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM