Prometheus TSDB: Difference between revisions
Appearance
Created page with ";Oldest record in Prometheus cd /home/costa/data/prometheus-data ;grep -r minTime --include meta.json | awk '{print $3}' | sort | head -n1 | rev| cut -c5- | rev | { read gmt..." |
No edit summary |
||
| Line 1: | Line 1: | ||
;Oldest record in Prometheus | ;Oldest record in Prometheus | ||
cd /home/costa/data/prometheus-data ;grep -r minTime --include meta.json | awk '{print $3}' | sort | head -n1 | rev| cut -c5- | rev | { read gmt ; date -d "@$gmt" ; } | cd /home/costa/data/prometheus-data ;grep -r minTime --include meta.json | awk '{print $3}' | sort | head -n1 | rev| cut -c5- | rev | { read gmt ; date -d "@$gmt" ; } | ||
snapshot https://gist.github.com/ksingh7/d5e4414d92241e0802e59fa4c585b98b | |||
Revision as of 19:09, 2 July 2024
- Oldest record in Prometheus
cd /home/costa/data/prometheus-data ;grep -r minTime --include meta.json | awk '{print $3}' | sort | head -n1 | rev| cut -c5- | rev | { read gmt ; date -d "@$gmt" ; }
snapshot https://gist.github.com/ksingh7/d5e4414d92241e0802e59fa4c585b98b