Sample postgres integer maximums from the postgres statistics collector

Currently we only have postgres integer saturation data in thanos for a few high-risk tables due to the overhead of querying max(id).

We might be able to pull this from the statistics collector, hugely reducing the load required and allowing this for every table

Goals:

  • More efficiently monitor integer maximums
  • Monitor integer maximums on all tables
Edited by silv