是否有任何现有程序可用于抓取Prometheus格式的指标并将其发送到StatsD? [英] Are there any existing programs for scraping Prometheus-formatted metrics and sending them to StatsD?

查看:151
本文介绍了是否有任何现有程序可用于抓取Prometheus格式的指标并将其发送到StatsD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,该应用程序在HTTP端点公开Prometheus格式的指标,但希望在使用StatsD的环境中运行它. Prometheus提供了可以接受StatsD指标并将其导出到Prometheus 的程序,但我似乎找不到一个程序做相反的事情.我了解所有指标类型可能映射不清晰,但是是否有这样的程序或库可以为您完成某些工作呢?

I have an application that exposes metrics in the Prometheus format at an HTTP endpoint but want to run it in an environment that uses StatsD. Prometheus provides a program that accepts StatsD metrics and exports them to Prometheus, but I can't seem to find a program to do the reverse. I understand that all metric types might not map cleanly, but are there any such programs out there or libraries that do some of the work for you?

推荐答案

我不知道任何此类工具,但是一些Prometheus客户端具有Prometheus文本格式的解析器,例如

I'm not aware of any such tool, however several Prometheus clients have a parser for the Prometheus text format such as Python and that could be then munged and sent on to statsd.

这篇关于是否有任何现有程序可用于抓取Prometheus格式的指标并将其发送到StatsD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆