diff --git a/production/loki-mixin/config.libsonnet b/production/loki-mixin/config.libsonnet index 98d002ee8496..501fe03b6baa 100644 --- a/production/loki-mixin/config.libsonnet +++ b/production/loki-mixin/config.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, diff --git a/production/loki-mixin/dashboards/loki-operational.libsonnet b/production/loki-mixin/dashboards/loki-operational.libsonnet index c6944487ce8e..0f29e9b01330 100644 --- a/production/loki-mixin/dashboards/loki-operational.libsonnet +++ b/production/loki-mixin/dashboards/loki-operational.libsonnet @@ -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 [ diff --git a/production/loki-mixin/mixin.libsonnet b/production/loki-mixin/mixin.libsonnet index 7e21657b2e61..53584824c633 100644 --- a/production/loki-mixin/mixin.libsonnet +++ b/production/loki-mixin/mixin.libsonnet @@ -2,4 +2,6 @@ (import 'alerts.libsonnet') + (import 'recording_rules.libsonnet') + { grafanaDashboardFolder: 'Loki', + // Without this, configs is not taken into account + _config+:: {}, }