bfmatei / apollo-prometheus-exporter

Plugin for Apollo Server to export metrics in Prometheus format
MIT License
55 stars 29 forks source link

Update mixin dashboard queries to use $__rate_interval. #18

Closed rgeyer closed 3 years ago

rgeyer commented 3 years ago

This PR changes to using $__rate_interval for promql queries containing a rate function call.

This replaces the templating variable for $interval that allows the user to choose, since $__rate_interval should be more dynamic and "almost always right".

Additionally, $__rate_interval is used for the irate functions in promql since the 1m interval is too short for any scrape interval over 30s. Some users are extending their scrape intervals to 60s or more in an effort to reduce active series storage costs.

bfmatei commented 3 years ago

:tada: This PR is included in version 2.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

bfmatei commented 3 years ago

:tada: This PR is included in version 1.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: