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?
- Host: GitHub
- URL: https://github.com/rfratto/promkv
- Owner: rfratto
- License: apache-2.0
- Created: 2023-05-09T21:43:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-09T21:45:08.000Z (over 2 years ago)
- Last Synced: 2025-02-09T04:46:08.932Z (8 months ago)
- Topics: kv-store, prometheus
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.