Skip to content
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

Closed
danielnelson opened this issue Jul 12, 2018 · 12 comments · Fixed by #7778
Closed

Add prometheus parser and serializer #4414

danielnelson opened this issue Jul 12, 2018 · 12 comments · Fixed by #7778
Labels
area/agent area/prometheus feature request Requests for new plugin and for new features to existing plugins

Comments

@danielnelson
Copy link
Contributor

Feature Request

Proposal:

Add a parser and a serializer that support Prometheus text exposition format

Current behavior:

No such parser/serializer

Desired behavior:

data_format = `prometheus`

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)

@danielarkins
Copy link

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?

@danielnelson
Copy link
Contributor Author

It is something we are planning to do but have not started work on. You might also be interested in #5003.

@danielarkins
Copy link

danielarkins commented Feb 6, 2019 via email

@allangood
Copy link

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.

@Elinvention
Copy link

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.

@elithe1
Copy link

elithe1 commented Oct 30, 2019

Hi! Is there any planning for this feature?
Or mb other suggestion on how to handle my usecase:
I am using kafka consumer plugin and the data that I try to get from there is in prometheus format which is not supported. (then I output with prometheus out put plugin)

@vpedosyuk
Copy link

@elithe1 I've got the same use case, so wondering if you've managed to get it working somehow?

@debu99
Copy link
Contributor

debu99 commented May 12, 2020

+1

@elithe1
Copy link

elithe1 commented May 12, 2020 via email

@0megam
Copy link

0megam commented Jun 3, 2020

If I understand correctly, for now file input plugin is not supporting prometheus data format ?

@danielnelson
Copy link
Contributor Author

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.

@lekuyuan
Copy link

lekuyuan commented Jul 6, 2024

Now is there a plugin that can satisfy this situation ( from telegraf to pushgateway)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/agent area/prometheus feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants