Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flush, compact, and merge Prometheus databases #80

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jordap
Copy link
Collaborator

@jordap jordap commented Aug 9, 2024

This is an exploration to enable merging multiple Prometheus databases and resolve issues like #10, relying directly on Prometheus/TSDB. The main use case is a user generating traces for several related jobs in user mode, and then merging them to visualize them in the same dashboard.

This PR is still an early prototype. Current status:

  • Open and flush existing Prometheus database (create a block with data in WAL)
  • Merge multiple databases (copy existing blocks from 2+ databases)
  • Compact database (force compaction of a database to make sure performance doesn't degrade)

@jordap jordap linked an issue Oct 2, 2024 that may be closed by this pull request
@jordap jordap self-assigned this Oct 2, 2024
@jordap jordap added the enhancement New feature or request label Oct 2, 2024
@jordap jordap force-pushed the jorda/prometheus-flush branch from 6f73883 to 95a76a7 Compare October 15, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow merging multiple Prometheus databases
1 participant