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

add stats, volume, and volume_range commands to logcli #9966

Merged
merged 5 commits into from Jul 24, 2023

Conversation

trevorwhitney
Copy link
Collaborator

Add stats, volume, and volume_range commands to logcli.

Does not implement the file client for now. I think it would be cool if in the future the file client could read from a downloaded TSDB index file for these commands.

@trevorwhitney trevorwhitney requested a review from a team as a code owner July 17, 2023 22:41
@trevorwhitney trevorwhitney changed the title Trevorwhitney/add stats volume to logcli add stats, volume, and volume_range commands to logcli Jul 17, 2023
statsCmd = app.Command("stats", `Run a stats query.

The "stats" command will take the provided query and return statistics
from the index for how much data that query will hit. This only works
Copy link
Contributor

Choose a reason for hiding this comment

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

for how much data that query will hit

This is only meaningful in the context of the ui. Probably want to say something like "how much data is contained in the streams defined by the selector for the time range"

@MasslessParticle
Copy link
Contributor

Looks good. Just a small note on wording

@trevorwhitney trevorwhitney merged commit 8aaf5c1 into main Jul 24, 2023
3 checks passed
@trevorwhitney trevorwhitney deleted the trevorwhitney/add-stats-volume-to-logcli branch July 24, 2023 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants