Closed DifferentialOrange closed 3 years ago
If Prometheus scrape_time is equal to 1m or less, rate() computation of data vector for 1 minute will fail
rate(tnt_stats_op_total{job=~\"[[job]]\",operation=\"upsert\"}[1m])
It is equal to 1m by default, so we should increase default vector time interval at least to 2m ("at the very minimum it should be two times the scrape interval" -- https://www.metricfire.com/blog/understanding-the-prometheus-rate-function/?GAID=231802381.1611061565&GAID=231802381.1611061565) and make in configurable.
If Prometheus scrape_time is equal to 1m or less, rate() computation of data vector for 1 minute will fail
It is equal to 1m by default, so we should increase default vector time interval at least to 2m ("at the very minimum it should be two times the scrape interval" -- https://www.metricfire.com/blog/understanding-the-prometheus-rate-function/?GAID=231802381.1611061565&GAID=231802381.1611061565) and make in configurable.