can remote_write write out plain text?

209 views
Skip to first unread message

m.mah...@gmail.com

unread,
Jul 18, 2018, 2:38:44 AM7/18/18
to Prometheus Users
Hi experts,

Is there a way for me to configure remote_write to write out metrics in plain text  (either json or some other) format, or is it limited to writing out in proto buf binary format?

Thank you,
Mahesh

satish shetty

unread,
Jul 18, 2018, 3:05:28 AM7/18/18
to m.mah...@gmail.com, Prometheus Users
You can use influxdb instead of file

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/92e30e37-6995-4115-a331-2f425292703e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Cody Boggs

unread,
Jul 18, 2018, 4:50:01 PM7/18/18
to satish shetty, m.mah...@gmail.com, Prometheus Users
I don't believe remote_write is intended for this purpose - it's only designed to send batches of metric samples to a remote receiver that is ready to accept the proper format.

Cody Boggs | Yak Shaver (Ops)

FreshTracks.io

Intelligent Alerting for Kubernetes and Prometheus


m.mah...@gmail.com

unread,
Jul 18, 2018, 11:40:41 PM7/18/18
to Prometheus Users
Thanks Cody for your inputs. Sorry, but not sure if i understood you correctly. Are you saying json isn't a proper format anymore for such purposes (though older systems such as collectd and telegraf support writing out json which continues to work fine)? Or is did you mean remote_write component is not the meant for this purpose but there's some other way to push json out of prometheus. Thanks again!


On Thursday, July 19, 2018 at 2:20:01 AM UTC+5:30, Cody Boggs wrote:
I don't believe remote_write is intended for this purpose - it's only designed to send batches of metric samples to a remote receiver that is ready to accept the proper format.

Cody Boggs | Yak Shaver (Ops)

FreshTracks.io

Intelligent Alerting for Kubernetes and Prometheus


On Wed, Jul 18, 2018 at 1:05 AM, satish shetty <shettys...@gmail.com> wrote:
You can use influxdb instead of file
On Wed, Jul 18, 2018 at 12:08 PM, <m.mah...@gmail.com> wrote:
Hi experts,

Is there a way for me to configure remote_write to write out metrics in plain text  (either json or some other) format, or is it limited to writing out in proto buf binary format?

Thank you,
Mahesh

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.

Brian Brazil

unread,
Jul 19, 2018, 1:11:54 AM7/19/18
to m.mah...@gmail.com, Prometheus Users
On 19 July 2018 at 04:40, <m.mah...@gmail.com> wrote:
Thanks Cody for your inputs. Sorry, but not sure if i understood you correctly. Are you saying json isn't a proper format anymore for such purposes (though older systems such as collectd and telegraf support writing out json which continues to work fine)? Or is did you mean remote_write component is not the meant for this purpose but there's some other way to push json out of prometheus. Thanks again!

The way to do it would be to code up something that took in the remote write data, and then converted it to the JSON format you want. Remote write is meant to be a place to hook into rather than an ultimate solution.

Brian 
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/7cb7c8eb-7b61-4269-bd98-c9f9edc68bb1%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Ms Sm

unread,
Jul 19, 2018, 2:05:40 AM7/19/18
to Prometheus Users
OK. Thanks Brian.

sesha...@gmail.com

unread,
Jul 25, 2018, 6:30:14 PM7/25/18
to Prometheus Users
it is possible . if you are using push_gateway to push scrape data,  on push_gateway startup scripts you have option to specify local log
file. It will dump scrap data on log file and it is a text. But it has control characters.  
Murali
Reply all
Reply to author
Forward
0 new messages