github.com/thanos-io/thanos@v0.32.5/scripts/thanos-block.jq (about) 1 #!/usr/bin/env jq -f 2 3 { 4 "ulid": .ulid, 5 "minTime": (.minTime / 1000 | todateiso8601), 6 "maxTime": (.maxTime / 1000 | todateiso8601), 7 "stats": .stats, 8 "thanos": .thanos, 9 "compaction": { 10 "level": .compaction.level, 11 "sources": .compaction.sources, 12 "sourcesCount": .compaction.sources | length, 13 "parents": (if .compaction.parents? then [ 14 .compaction.parents[] | { 15 "ulid": .ulid, 16 "minTime": (.minTime / 1000 | todateiso8601), 17 "maxTime": (.maxTime / 1000 | todateiso8601), 18 } 19 ] else null end) 20 }, 21 } 22