An open API service indexing awesome lists of open source software.

https://github.com/rfratto/promkv

What if you could store arbitrary data in Prometheus?
https://github.com/rfratto/promkv

kv-store prometheus

Last synced: 6 months ago
JSON representation

What if you could store arbitrary data in Prometheus?

Awesome Lists containing this project

README

          

# promkv

`promkv` is a joke key-value store backed by Prometheus.

Key-value pairs are stored as three different time series:

* `promkv_file_timestamp_seconds`: The timestamp where the most recent write of
the key-value pair starts.
* `promkv_file_size_bytes`: The size of the most recent write, in bytes.
* `promkv_file_content`: The content of the most recent write. Each byte of the
value is uploaded as a different sample one second apart.

The name of the key is stored as the `key` label.

Do not use this in production; `promkv` is almost guaranteed to do something
wrong and will probably lose data.