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 profilecli command to dump the tsdb index #3189

Conversation

simonswine
Copy link
Contributor

@simonswine simonswine commented Apr 10, 2024

This is useful connecting SeriesIndex to the one in profiles.parquet.

❯ go run ./cmd/profilecli admin tsdb series ./my-block/index.tsdb
{"SeriesRef":247850,"SeriesIndex":16992,"Labels":{"__name__":"process_cpu","__period_type__":"cpu","__period_unit__":"nanoseconds","__profile_type__":"process_cpu:cpu:nanoseconds:cpu:nanoseconds", ...}}
[...]

This is useful connecting series to the profiles.parquet.

```
❯ go run ./cmd/profilecli admin tsdb series ./my-block/index.tsdb
{"SeriesRef":247850,"SeriesIndex":16992,"Labels":{"__name__":"process_cpu","__period_type__":"cpu","__period_unit__":"nanoseconds","__profile_type__":"process_cpu:cpu:nanoseconds:cpu:nanoseconds", ...}}
[...]
```
@simonswine simonswine force-pushed the 20240410_profilecli-allow-to-dump-tsdb-index branch from 3a81118 to 9d3541c Compare April 10, 2024 16:17
@simonswine simonswine marked this pull request as ready for review April 10, 2024 16:18
@simonswine simonswine requested a review from a team as a code owner April 10, 2024 16:18
@simonswine simonswine merged commit 14bcf58 into grafana:main Apr 12, 2024
16 checks passed
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