FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

A redis-backed storage backend by stefanor · Pull Request #1170 · prometheus/client_python · GitHub

A redis-backed storage backend - #1170

Open
stefanor wants to merge 2 commits into
prometheus:masterfrom
stefanor:redis-values
Open

A redis-backed storage backend#1170
stefanor wants to merge 2 commits into
prometheus:masterfrom
stefanor:redis-values

Conversation

stefanor commented Apr 26, 2026
edited
Loading

Copy link
Copy Markdown

The multiprocess backend has an issue with database file explosion (#204, #518, etc.)

In the environment that I'm running into this problem, we have a redis database available, so why not take advantage of this?

Here is a fairly naive proof-of-concept example.

Also compatible with Valkey.

stefanor force-pushed the redis-values branch 10 times, most recently from 410e68f to a61fed9 Compare May 3, 2026 18:58
stefanor force-pushed the redis-values branch 2 times, most recently from 0543a95 to 7c7d64c Compare May 8, 2026 03:44

Copy link
Copy Markdown
Author

FWIW, we're using this in production: https://salsa.debian.org/freexian-team/debusine/-/merge_requests/3013

So far, it seems to work well.

SHxKM commented Aug 21, 2026

Copy link
Copy Markdown

@stefanor this might solve quite a big headache for me, is it still working for you guys?

Copy link
Copy Markdown
Author

Yes, we haven't had to touch it since.

Signed-off-by: Stefano Rivera <stefano@rivera.za.net>
Signed-off-by: Stefano Rivera <stefano@rivera.za.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL