Skip to content

Commit

Permalink
fix(mixins): retention dashboards fix metric name (#14617)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoBraveCoding authored Oct 28, 2024
1 parent b872246 commit c762b9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@
"span": 6,
"targets": [
{
"expr": "sum(increase(loki_compactor_skipped_compacting_locked_table_total{cluster=~\"$cluster\", namespace=~\"$namespace\"}[$__range]))",
"expr": "sum(loki_compactor_locked_table_successive_compaction_skips{cluster=~\"$cluster\", namespace=~\"$namespace\"})",
"format": "time_series",
"legendFormat": "{{table_name}}",
"legendLink": null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@
"span": 6,
"targets": [
{
"expr": "sum(increase(loki_compactor_skipped_compacting_locked_table_total{cluster=~\"$cluster\", namespace=~\"$namespace\"}[$__range]))",
"expr": "sum(loki_compactor_locked_table_successive_compaction_skips{cluster=~\"$cluster\", namespace=~\"$namespace\"})",
"format": "time_series",
"legendFormat": "{{table_name}}",
"legendLink": null
Expand Down
2 changes: 1 addition & 1 deletion production/loki-mixin/dashboards/loki-retention.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
$.row('')
.addPanel(
$.newQueryPanel('Number of times Tables were skipped during Compaction') +
$.queryPanel(['sum(increase(loki_compactor_skipped_compacting_locked_table_total{%s}[$__range]))' % $.namespaceMatcher()], ['{{table_name}}']),
$.queryPanel(['sum(loki_compactor_locked_table_successive_compaction_skips{%s})' % $.namespaceMatcher()], ['{{table_name}}']),
)
.addPanel(
$.newQueryPanel('Compact Tables Operations Per Status') +
Expand Down

0 comments on commit c762b9b

Please sign in to comment.