8000 promtool: support creating tsdb blocks from a pipe by n-peugnet · Pull Request #16011 · prometheus/prometheus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

promtool: support creating tsdb blocks from a pipe #16011

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

Merged

Conversation

n-peugnet
Copy link
Contributor
@n-peugnet n-peugnet commented Feb 11, 2025

This is very useful when piping the input file to stdin and then using /dev/stdin as the input file. e.g.

xzcat dump.xz |
	promtool tsdb create-blocks-from openmetrics /dev/stdin /tmp/data

Signed-off-by: Nicolas Peugnet nicolas.peugnet@lip6.fr

@n-peugnet n-peugnet requested a review from dgl as a code owner February 11, 2025 15:57
@n-peugnet n-peugnet force-pushed the promtool-tsdb-create-blocks-from-pipe branch 4 times, most recently from 10ea94a to e056fa0 Compare February 12, 2025 10:02
Copy link
Member
@dgl dgl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, one minor change but otherwise looks good (and thanks for the test!)

This is very useful when piping the input file to stdin and then using
/dev/stdin as the input file. e.g.

    xzcat dump.xz |
    	promtool tsdb create-blocks-from openmetrics /dev/stdin /tmp/data

Signed-off-by: Nicolas Peugnet <nicolas.peugnet@lip6.fr>
@n-peugnet n-peugnet force-pushed the promtool-tsdb-create-blocks-from-pipe branch from e056fa0 to 14396dd Compare February 12, 2025 10:43
@dgl dgl merged commit 898af61 into prometheus:main Feb 13, 2025
26 checks passed
@n-peugnet n-peugnet deleted the promtool-tsdb-create-blocks-from-pipe branch February 13, 2025 08:21
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
0