Aller au contenu

Downsampled data in Grafana#

Downsampled data in grafana#

To see the data downsampled in Grafana, you have to interrogate Thanos over a long time range.

If the data is not yet visible, the time range must be increased.

If you want to zoom in on these downsampled data, you have to configure the step, for example at 30m.

However the purpose of having downsampled data is not to be able to zoom in on it : Thanos Compactor documentation (downsampling resolution and retention)

Usage of auto-downsampling#

The option --query.auto-downsampling is added in the configuration of Thanos Querier.

This allows Thanos Querier to return lower resolution data when huge time ranges are queried.

Example, with :

  retention:
    resolution:
      raw: "15d"
      preset_5m: "31d"
      preset_1h: "366d"
  • auto-downsampling chooses raw resolution for a 1h time range.
  • auto-downsampling chooses 5m resolution for a 90d time range.