Skip to content

openshift/prometheus-alert-buffer

 
 

Repository files navigation

Prometheus Alert Buffer

This simple server accepts incoming JSON objects over HTTP, stores them in a database, and makes them queryable by index via HTTP.

Build

go build

Run

./prometheus-alert-buffer

Send JSON objects

curl -v -XPOST -d '{"foo": "bar"}' http://localhost:9099/topics/your-topic

Retrieve objects

Retrieve all objects:

curl http://localhost:9099/topics/your-topic

Retrieve all objects with entry index >= 3 for generation ID 3f8e1781-b755-4f6a-8855-94eb20b00dc6:

curl 'http://localhost:9099/topics/your-topic?generationID=3f8e1781-b755-4f6a-8855-94eb20b00dc6&fromIndex=3'

The generationID query parameter is expected to match the generationID value returned from any /topics/* requests. If it does not match, all entries are returned instead of just the ones starting from fromIndex. The generation ID is created when the tool's database is first initialized.

About

A small server that saves incoming webhook JSON objects and makes them queryable over HTTP.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.3%
  • Shell 1.7%