Skip to content

Commit

Permalink
chore: fix hardcoded range interval
Browse files Browse the repository at this point in the history
  • Loading branch information
Juraj Michalek committed Apr 10, 2024
1 parent c2eec98 commit 2c64648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mixin-utils/utils.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ local g = import 'grafana-builder/grafana.libsonnet';
},
{
record: '%(labels_underscore)s:%(metric)s:avg' % vars,
expr: 'sum(rate(%(metric)s_sum[1m])) by (%(labels_comma)s) / sum(rate(%(metric)s_count[%(interval)s])) by (%(labels_comma)s)' % vars,
expr: 'sum(rate(%(metric)s_sum[%(interval)s])) by (%(labels_comma)s) / sum(rate(%(metric)s_count[%(interval)s])) by (%(labels_comma)s)' % vars,
},
{
record: '%(labels_underscore)s:%(metric)s_bucket:sum_rate' % vars,
Expand Down

0 comments on commit 2c64648

Please sign in to comment.