Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions production/loki-mixin/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
11 changes: 9 additions & 2 deletions production/loki-mixin/dashboards/loki-operational.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down
2 changes: 2 additions & 0 deletions production/loki-mixin/mixin.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
(import 'alerts.libsonnet') +
(import 'recording_rules.libsonnet') + {
grafanaDashboardFolder: 'Loki',
// Without this, configs is not taken into account
_config+:: {},
}
Loading