-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add prometheus parser and serializer #4414
Comments
Interested in similar, would like to use http output plugin to perform a post of metrics to a custom collector in Prometheus exposition format. Do we know if anyone is considering this? |
It is something we are planning to do but have not started work on. You might also be interested in #5003. |
I'm interested in this feature as well. My use case is because I have some systems that logs the metrics to a file and telegraf has a file plugin, but it cannot parse the Prometheus metrics. The interesting part is that Telegraf is capable to read Prometheus metrics from http requests and also can expose as client, but cannot parse it. |
Also this could be useful to avoid having to install a Prometheus PushGateway, if I understand correctly. We could push prometheus metrics directly into Telegraf. |
Hi! Is there any planning for this feature? |
@elithe1 I've got the same use case, so wondering if you've managed to get it working somehow? |
+1 |
I actually ended up writing my own parser. Tou can still some good code
from the repo from other prometheus stuff there
…On Wed, 4 Mar 2020 at 21.33, Vlad Pedosyuk ***@***.***> wrote:
@elithe1 <https://github.com/elithe1> I've got the same use case, so
wondering if you've managed to get it working somehow?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4414?email_source=notifications&email_token=ADJSLMP6VIPCOJEI37UDJMLRF23H3A5CNFSM4FJQ4REKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN2DQHA#issuecomment-594819100>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADJSLMNK5UCZQM7PC3TEAHTRF23H3ANCNFSM4FJQ4REA>
.
|
If I understand correctly, for now file input plugin is not supporting prometheus data format ? |
Right now we have only a serializer for Prometheus data format, so it can only be used in output plugins. Hoping to add a parser so it can be used in the file input in the future. |
Now is there a plugin that can satisfy this situation ( from telegraf to pushgateway)? |
Feature Request
Proposal:
Add a parser and a serializer that support Prometheus text exposition format
Current behavior:
No such parser/serializer
Desired behavior:
Use case:
Would be useful for integrating with services which use this format but do not use HTTP, and for transferring prometheus specific metadata such as TYPE and HELP (#4354)
The text was updated successfully, but these errors were encountered: