[go: nahoru, domu]

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

Fix tempo-cli list block encoding and add some helpful things #534

Merged
merged 2 commits into from
Feb 17, 2021

Conversation

mdisibio
Copy link
Contributor
@mdisibio mdisibio commented Feb 17, 2021

What this PR does:
The tempo-cli list block --check-dupes option was broken for compressed blocks because it did not properly set the encoding. This PR fixes that but also changes the option to --scan and adds some help things: min/max object size, and ability to exit early and print current stats with CRTL+C. These things were useful during a recent investigation.

The output looks like this:

$ ./tempo-cli -c ~/tempo.gcs.yaml list block ............ --scan
ID            :  700f39bb-219a-4bfd-a7c4-24df06cd6db7
Version       :  v1
Total Objects :  273967
Data Size     :  427 MB
Encoding      :  zstd
Level         :  0
Window        :  448220
Start         :  2021-02-17 20:34:00.405224842 +0000 UTC
End           :  2021-02-17 20:38:59.463662752 +0000 UTC
Duration      :  4m59s
Age           :  18m22s
Scanning block contents.  Press CRTL+C to quit ...
Record:  100000
^C
Scanning results:
Objects scanned :  109510
Duplicates      :  0
Smallest object :  371 B
Largest object  :  2.3 MB

Which issue(s) this PR fixes:
n/a

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@joe-elliott
Copy link
Member

scan contents of block for duplicate trace IDs and other info (warning, can be intense)

i love this warning. let's never remove it.

@joe-elliott joe-elliott merged commit 8bca2a8 into grafana:master Feb 17, 2021
@mdisibio mdisibio deleted the fix-tempo-cli-list-block branch May 27, 2021 13:26
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