From e7fadaf0a0ff34976f4f51301c35a9fa9069297b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20=C3=85hsberg?= Date: Thu, 8 Apr 2021 16:03:08 +0000 Subject: [PATCH] Mixin: Remove dependency on the rule dashboard when generating the compact dashboard. (#4029) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mathias Åhsberg --- CHANGELOG.md | 1 + mixin/dashboards/compact.libsonnet | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6302fe6d9..dc423a876e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ We use _breaking :warning:_ to mark changes that are not backward compatible (re ## Unreleased +- [#4029](https://github.com/thanos-io/thanos/pull/4029) Mixin: Remove dependency on the rule dashboard when generating the compact dashboard - [#4019](https://github.com/thanos-io/thanos/pull/4019) Query: Adds query range histogram. - [#3350](https://github.com/thanos-io/thanos/pull/3350) Query/Sidecar: Added targets API support. You can now configure you Querier to fetch Prometheus targets from leaf Prometheus-es! diff --git a/mixin/dashboards/compact.libsonnet b/mixin/dashboards/compact.libsonnet index b5db251613..705168b538 100644 --- a/mixin/dashboards/compact.libsonnet +++ b/mixin/dashboards/compact.libsonnet @@ -35,7 +35,7 @@ local utils = import '../lib/utils.libsonnet'; g.qpsErrTotalPanel( 'thanos_compact_group_compactions_failures_total{%(selector)s}' % thanos.compact.dashboard.selector, 'thanos_compact_group_compactions_total{%(selector)s}' % thanos.compact.dashboard.selector, - thanos.rule.dashboard.dimensions + thanos.compact.dashboard.dimensions ) ) ) @@ -57,7 +57,7 @@ local utils = import '../lib/utils.libsonnet'; g.qpsErrTotalPanel( 'thanos_compact_downsample_failed_total{%(selector)s}' % thanos.compact.dashboard.selector, 'thanos_compact_downsample_total{%(selector)s}' % thanos.compact.dashboard.selector, - thanos.rule.dashboard.dimensions + thanos.compact.dashboard.dimensions ) ) ) @@ -79,12 +79,12 @@ local utils = import '../lib/utils.libsonnet'; g.qpsErrTotalPanel( 'thanos_compact_garbage_collection_failures_total{%(selector)s}' % thanos.compact.dashboard.selector, 'thanos_compact_garbage_collection_total{%(selector)s}' % thanos.compact.dashboard.selector, - thanos.rule.dashboard.dimensions + thanos.compact.dashboard.dimensions ) ) .addPanel( g.panel('Duration', 'Shows how long has it taken to execute garbage collection in quantiles.') + - g.latencyPanel('thanos_compact_garbage_collection_duration_seconds', thanos.rule.dashboard.selector, thanos.rule.dashboard.dimensions) + g.latencyPanel('thanos_compact_garbage_collection_duration_seconds', thanos.compact.dashboard.selector, thanos.compact.dashboard.dimensions) ) ) .addRow( @@ -139,12 +139,12 @@ local utils = import '../lib/utils.libsonnet'; g.qpsErrTotalPanel( 'thanos_blocks_meta_sync_failures_total{%(selector)s}' % thanos.compact.dashboard.selector, 'thanos_blocks_meta_syncs_total{%(selector)s}' % thanos.compact.dashboard.selector, - thanos.rule.dashboard.dimensions + thanos.compact.dashboard.dimensions ) ) .addPanel( g.panel('Duration', 'Shows how long has it taken to execute meta file sync, in quantiles.') + - g.latencyPanel('thanos_blocks_meta_sync_duration_seconds', thanos.rule.dashboard.selector, thanos.rule.dashboard.dimensions) + g.latencyPanel('thanos_blocks_meta_sync_duration_seconds', thanos.compact.dashboard.selector, thanos.compact.dashboard.dimensions) ) ) .addRow( @@ -162,16 +162,16 @@ local utils = import '../lib/utils.libsonnet'; g.qpsErrTotalPanel( 'thanos_objstore_bucket_operation_failures_total{%(selector)s}' % thanos.compact.dashboard.selector, 'thanos_objstore_bucket_operations_total{%(selector)s}' % thanos.compact.dashboard.selector, - thanos.rule.dashboard.dimensions + thanos.compact.dashboard.dimensions ) ) .addPanel( g.panel('Duration', 'Shows how long has it taken to execute operations against the bucket, in quantiles.') + - g.latencyPanel('thanos_objstore_bucket_operation_duration_seconds', thanos.rule.dashboard.selector, thanos.rule.dashboard.dimensions) + g.latencyPanel('thanos_objstore_bucket_operation_duration_seconds', thanos.compact.dashboard.selector, thanos.compact.dashboard.dimensions) ) ) .addRow( - g.resourceUtilizationRow(thanos.rule.dashboard.selector, thanos.rule.dashboard.dimensions) + g.resourceUtilizationRow(thanos.compact.dashboard.selector, thanos.compact.dashboard.dimensions) ), __overviewRows__+:: [ @@ -196,7 +196,7 @@ local utils = import '../lib/utils.libsonnet'; g.qpsErrTotalPanel( 'thanos_compact_group_compactions_failures_total{%(selector)s}' % thanos.dashboard.overview.selector, 'thanos_compact_group_compactions_total{%(selector)s}' % thanos.dashboard.overview.selector, - thanos.rule.dashboard.dimensions + thanos.compact.dashboard.dimensions ) + g.addDashboardLink(thanos.compact.title) ) +