Read Timeseries from Kafka topic and ingest into Prometheus

39 views
Skip to first unread message

machhindra nale

unread,
Oct 3, 2020, 12:36:38 PM10/3/20
to Prometheus Users
Team,

How can I ingest the timeseries metric data from a Kafka topic to Prometheus?

Timeseries metric data uses avro encoding. I do not want to monitor Kafka, but ingest the streaming data from a kafka topic into Prometheus.

thanks,
Machhindra

Brian Candler

unread,
Oct 3, 2020, 2:33:25 PM10/3/20
to Prometheus Users
You can't.  Prometheus does not support "push" of data into the timeseries database; it can only "pull" data by scraping.

Have a look at other TSDB solutions.

Harkishen Singh

unread,
Oct 5, 2020, 8:29:15 AM10/5/20
to Prometheus Users
Was wondering why pushgateway (https://github.com/prometheus/pushgateway) will not be useful here. Pushgateway was build for these purposes.

Brian Candler

unread,
Oct 5, 2020, 10:28:24 AM10/5/20
to Prometheus Users
No, pushgateway was not built for that purpose.

Pushgateway remembers only the *last* value that was pushed to it, so that it can be scraped later.  It's for one-shot scripts which run and then terminate, but want their result to linger around to be scraped later.

machhin...@gmail.com

unread,
Oct 5, 2020, 5:53:52 PM10/5/20
to Prometheus Users
Thank you for the advise!!
Reply all
Reply to author
Forward
0 new messages