Skip to content

Commit fd2eeeb

Browse files
author
Mathias Åhsberg
committed
Mixin: Remove dependency on the rule dashboard when generating the compact dashboard.
1 parent 7a5955b commit fd2eeeb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

mixin/dashboards/compact.libsonnet

+10-10
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ local utils = import '../lib/utils.libsonnet';
3535
g.qpsErrTotalPanel(
3636
'thanos_compact_group_compactions_failures_total{%(selector)s}' % thanos.compact.dashboard.selector,
3737
'thanos_compact_group_compactions_total{%(selector)s}' % thanos.compact.dashboard.selector,
38-
thanos.rule.dashboard.dimensions
38+
thanos.compact.dashboard.dimensions
3939
)
4040
)
4141
)
@@ -57,7 +57,7 @@ local utils = import '../lib/utils.libsonnet';
5757
g.qpsErrTotalPanel(
5858
'thanos_compact_downsample_failed_total{%(selector)s}' % thanos.compact.dashboard.selector,
5959
'thanos_compact_downsample_total{%(selector)s}' % thanos.compact.dashboard.selector,
60-
thanos.rule.dashboard.dimensions
60+
thanos.compact.dashboard.dimensions
6161
)
6262
)
6363
)
@@ -79,12 +79,12 @@ local utils = import '../lib/utils.libsonnet';
7979
g.qpsErrTotalPanel(
8080
'thanos_compact_garbage_collection_failures_total{%(selector)s}' % thanos.compact.dashboard.selector,
8181
'thanos_compact_garbage_collection_total{%(selector)s}' % thanos.compact.dashboard.selector,
82-
thanos.rule.dashboard.dimensions
82+
thanos.compact.dashboard.dimensions
8383
)
8484
)
8585
.addPanel(
8686
g.panel('Duration', 'Shows how long has it taken to execute garbage collection in quantiles.') +
87-
g.latencyPanel('thanos_compact_garbage_collection_duration_seconds', thanos.rule.dashboard.selector, thanos.rule.dashboard.dimensions)
87+
g.latencyPanel('thanos_compact_garbage_collection_duration_seconds', thanos.compact.dashboard.selector, thanos.compact.dashboard.dimensions)
8888
)
8989
)
9090
.addRow(
@@ -139,12 +139,12 @@ local utils = import '../lib/utils.libsonnet';
139139
g.qpsErrTotalPanel(
140140
'thanos_blocks_meta_sync_failures_total{%(selector)s}' % thanos.compact.dashboard.selector,
141141
'thanos_blocks_meta_syncs_total{%(selector)s}' % thanos.compact.dashboard.selector,
142-
thanos.rule.dashboard.dimensions
142+
thanos.compact.dashboard.dimensions
143143
)
144144
)
145145
.addPanel(
146146
g.panel('Duration', 'Shows how long has it taken to execute meta file sync, in quantiles.') +
147-
g.latencyPanel('thanos_blocks_meta_sync_duration_seconds', thanos.rule.dashboard.selector, thanos.rule.dashboard.dimensions)
147+
g.latencyPanel('thanos_blocks_meta_sync_duration_seconds', thanos.compact.dashboard.selector, thanos.compact.dashboard.dimensions)
148148
)
149149
)
150150
.addRow(
@@ -162,16 +162,16 @@ local utils = import '../lib/utils.libsonnet';
162162
g.qpsErrTotalPanel(
163163
'thanos_objstore_bucket_operation_failures_total{%(selector)s}' % thanos.compact.dashboard.selector,
164164
'thanos_objstore_bucket_operations_total{%(selector)s}' % thanos.compact.dashboard.selector,
165-
thanos.rule.dashboard.dimensions
165+
thanos.compact.dashboard.dimensions
166166
)
167167
)
168168
.addPanel(
169169
g.panel('Duration', 'Shows how long has it taken to execute operations against the bucket, in quantiles.') +
170-
g.latencyPanel('thanos_objstore_bucket_operation_duration_seconds', thanos.rule.dashboard.selector, thanos.rule.dashboard.dimensions)
170+
g.latencyPanel('thanos_objstore_bucket_operation_duration_seconds', thanos.compact.dashboard.selector, thanos.compact.dashboard.dimensions)
171171
)
172172
)
173173
.addRow(
174-
g.resourceUtilizationRow(thanos.rule.dashboard.selector, thanos.rule.dashboard.dimensions)
174+
g.resourceUtilizationRow(thanos.compact.dashboard.selector, thanos.compact.dashboard.dimensions)
175175
),
176176

177177
__overviewRows__+:: [
@@ -196,7 +196,7 @@ local utils = import '../lib/utils.libsonnet';
196196
g.qpsErrTotalPanel(
197197
'thanos_compact_group_compactions_failures_total{%(selector)s}' % thanos.dashboard.overview.selector,
198198
'thanos_compact_group_compactions_total{%(selector)s}' % thanos.dashboard.overview.selector,
199-
thanos.rule.dashboard.dimensions
199+
thanos.compact.dashboard.dimensions
200200
) +
201201
g.addDashboardLink(thanos.compact.title)
202202
) +

0 commit comments

Comments
 (0)