Skip to content

tuxiedev/prompush

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prompush

Pushing data to Prometheus remote writes from Kafka

Goal

To demonstrate how one can use Kafka as an intermediate buffer between Prometheus and a remote storage backend.

Components Used

  • Bytehoops - An application that transfers bytes received on an HTTP endpoint and forwards it to Kafka. Conversely, it can also be run to consumer from Kafka and write the message to an API endpoint. In these operations, the HTTP Request Headers and Kafka Message Headers are retained
  • Apache Kafka - A high throughput messaging queue
  • Cortex - One of the most popular remote storage and querying backends for Prometheus.
  • Avalanche - A load testing tool to analyse loads on a Prometheus server and remote storage backends.

Running the experiment

  • Start the docker-compose of the test services

    docker-compose up -d
  • Start avalance a load testing tool for Prometheus remote write

     docker run quay.io/freshtracks.io/avalanche --remote-url http://host.docker.internal:8080/v1/write
  • See the following command to find that 5000+ timeseries were populated cortex stats

About

Experiments with pushing data to Prometheus Remote Storage systems through Apache Kafka

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages