# prometheus-alert-buffer **Repository Path**: mirrors_openshift/prometheus-alert-buffer ## Basic Information - **Project Name**: prometheus-alert-buffer - **Description**: A small server that saves incoming webhook JSON objects and makes them queryable over HTTP. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-22 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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.