Skip to content

Commit

Permalink
Add current all to clickhouse-mixin (#1354)
Browse files Browse the repository at this point in the history
* Add current all to clickhouse-mixin

* Add allValues
  • Loading branch information
v-zhuravlev authored Nov 12, 2024
1 parent a8fc213 commit 69196e8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 5 additions & 3 deletions clickhouse-mixin/dashboards/clickhouse-latency.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ local zooKeeperWaitTimePanel(matcher) =
label='job',
datasource=promDatasource,
query='label_values(ClickHouseProfileEvents_DiskReadElapsedMicroseconds,job)',
current='',
current='all',
refresh=2,
includeAll=true,
multi=true,
Expand All @@ -470,7 +470,8 @@ local zooKeeperWaitTimePanel(matcher) =
label='instance',
datasource=promDatasource,
query='label_values(ClickHouseProfileEvents_DiskReadElapsedMicroseconds{job=~"$job"}, instance)',
current='',
current='all',
allValues='.+',
refresh=2,
includeAll=true,
sort=1
Expand All @@ -480,10 +481,11 @@ local zooKeeperWaitTimePanel(matcher) =
promDatasource,
'label_values(ClickHouseProfileEvents_DiskReadElapsedMicroseconds{job=~"$job"}, cluster)',
label='Cluster',
current='all',
refresh=2,
includeAll=true,
multi=true,
allValues='',
allValues='.*',
hide=if $._config.enableMultiCluster then '' else 'variable',
sort=0
),
Expand Down
8 changes: 5 additions & 3 deletions clickhouse-mixin/dashboards/clickhouse-overview.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ local networkTransmittedPanel(matcher) =
label='job',
datasource='$prometheus_datasource',
query='label_values(ClickHouseProfileEvents_DiskReadElapsedMicroseconds,job)',
current='',
current='all',
refresh=2,
includeAll=true,
multi=true,
Expand All @@ -759,7 +759,8 @@ local networkTransmittedPanel(matcher) =
label='instance',
datasource='$prometheus_datasource',
query='label_values(ClickHouseProfileEvents_Query{job=~"$job"}, instance)',
current='',
current='all',
allValues='.+',
refresh=2,
includeAll=true,
sort=1
Expand All @@ -769,10 +770,11 @@ local networkTransmittedPanel(matcher) =
promDatasource,
'label_values(ClickHouseProfileEvents_Query{job=~"$job"}, cluster)',
label='Cluster',
current='all',
refresh=2,
includeAll=true,
multi=true,
allValues='',
allValues='.*',
hide=if $._config.enableMultiCluster then '' else 'variable',
sort=0
),
Expand Down
8 changes: 5 additions & 3 deletions clickhouse-mixin/dashboards/clickhouse-replica.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ local zooKeeperRequestsPanel(matcher) =
label='job',
datasource=promDatasource,
query='label_values(ClickHouseMetrics_InterserverConnection,job)',
current='',
current='all',
refresh=2,
includeAll=true,
multi=true,
Expand All @@ -651,7 +651,8 @@ local zooKeeperRequestsPanel(matcher) =
label='instance',
datasource=promDatasource,
query='label_values(ClickHouseMetrics_InterserverConnection{job=~"$job"}, instance)',
current='',
current='all',
allValues='.+',
refresh=2,
includeAll=true,
sort=1
Expand All @@ -661,10 +662,11 @@ local zooKeeperRequestsPanel(matcher) =
promDatasource,
'label_values(ClickHouseMetrics_InterserverConnection{job=~"$job"}, cluster)',
label='Cluster',
current='all',
refresh=2,
includeAll=true,
multi=true,
allValues='',
allValues='.*',
hide=if $._config.enableMultiCluster then '' else 'variable',
sort=0
),
Expand Down

0 comments on commit 69196e8

Please sign in to comment.