使用来自 Graphite 的 protobuf 消息

Consume protobuf messages from Graphite

我想知道我是否可以使用 protobuf 将数据发送到 Graphite。

我有一个以 protobuf 格式发送统计信息的应用程序,我想开始将这些统计信息发送到 Graphite。

我在 google 中搜索,我刚找到这个 https://graphite.readthedocs.io/en/latest/search.html?q=protobuf&check_keywords=yes&area=default# 但不清楚它是否仅用于石墨内部核心使用。

谢谢!

是的,你可以,认为它从版本 1.x 及更高版本开始可用。

请参阅 Python 中的示例: https://github.com/graphite-project/carbon/blob/master/examples/example-protobuf-client.py

您必须在 Carbon 配置中启用侦听器: https://github.com/graphite-project/carbon/blob/master/conf/carbon.conf.example#L113-L117