feat(mixins): Allow hiding useless rows in loki-operational (#13646)

Signed-off-by: QuentinBisson <quentin@giantswarm.io>
pull/14158/head
Quentin Bisson 8 months ago committed by GitHub
parent b90b863162
commit 3aa4f2227e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 19
      production/loki-mixin/config.libsonnet
  2. 11
      production/loki-mixin/dashboards/loki-operational.libsonnet
  3. 2
      production/loki-mixin/mixin.libsonnet

@ -20,6 +20,25 @@
enabled: true,
},
operational: {
// Whether or not to include memcached in the operational dashboard
memcached: true,
// Whether or not to include consul in the operational dashboard
consul: true,
// Whether or not to include big table in the operational dashboard
bigTable: true,
// Whether or not to include dynamo in the operational dashboard
dynamo: true,
// Whether or not to include gcs in the operational dashboard
gcs: true,
// Whether or not to include s3 in the operational dashboard
s3: true,
// Whether or not to include azure blob in the operational dashboard
azureBlob: true,
// Whether or not to include bolt db in the operational dashboard
boltDB: true,
},
// Enable TSDB specific dashboards
tsdb: true,

@ -14,8 +14,15 @@ local utils = import 'mixin-utils/utils.libsonnet';
hiddenRows:: [
'Cassandra',
] + if !$._config.ssd.enabled then [] else [
'Ingester',
if $._config.ssd.enabled then 'Ingester',
if !$._config.operational.memcached then 'Memcached',
if !$._config.operational.consul then 'Consul',
if !$._config.operational.bigTable then 'Big Table',
if !$._config.operational.dynamo then 'Dynamo',
if !$._config.operational.gcs then 'GCS',
if !$._config.operational.s3 then 'S3',
if !$._config.operational.azureBlob then 'Azure Blob',
if !$._config.operational.boltDB then 'BoltDB Shipper',
],
hiddenPanels:: if $._config.promtail.enabled then [] else [

@ -2,4 +2,6 @@
(import 'alerts.libsonnet') +
(import 'recording_rules.libsonnet') + {
grafanaDashboardFolder: 'Loki',
// Without this, configs is not taken into account
_config+:: {},
}

Loading…
Cancel
Save