Skip to content

Commit

Permalink
Adding support for datasource_regex in resources dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivam Shukla committed Sep 19, 2023
1 parent 63337d9 commit 58c4663
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions dashboards/resources/cluster.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ local template = grafana.template;
g.dashboard(
'%(dashboardNamePrefix)sCompute Resources / Cluster' % $._config.grafanaK8s,
uid=($._config.grafanaDashboardIDs['k8s-resources-cluster.json']),
datasource_regex=$._config.datasourceFilterRegex,
)
.addRow(
(g.row('Headlines') +
Expand Down
1 change: 1 addition & 0 deletions dashboards/resources/multi-cluster.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ local g = import 'github.com/grafana/jsonnet-libs/grafana-builder/grafana.libson
g.dashboard(
'%(dashboardNamePrefix)sCompute Resources / Multi-Cluster' % $._config.grafanaK8s,
uid=($._config.grafanaDashboardIDs['k8s-resources-multicluster.json']),
datasource_regex=$._config.datasourceFilterRegex,
).addRow(
(g.row('Headlines') +
{
Expand Down
1 change: 1 addition & 0 deletions dashboards/resources/namespace.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ local template = grafana.template;
g.dashboard(
'%(dashboardNamePrefix)sCompute Resources / Namespace (Pods)' % $._config.grafanaK8s,
uid=($._config.grafanaDashboardIDs['k8s-resources-namespace.json']),
datasource_regex=$._config.datasourceFilterRegex,
)
.addRow(
(g.row('Headlines') +
Expand Down
1 change: 1 addition & 0 deletions dashboards/resources/node.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ local template = grafana.template;
g.dashboard(
'%(dashboardNamePrefix)sCompute Resources / Node (Pods)' % $._config.grafanaK8s,
uid=($._config.grafanaDashboardIDs['k8s-resources-node.json']),
datasource_regex=$._config.datasourceFilterRegex,
)
.addRow(
g.row('CPU Usage')
Expand Down
1 change: 1 addition & 0 deletions dashboards/resources/pod.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ local template = grafana.template;
g.dashboard(
'%(dashboardNamePrefix)sCompute Resources / Pod' % $._config.grafanaK8s,
uid=($._config.grafanaDashboardIDs['k8s-resources-pod.json']),
datasource_regex=$._config.datasourceFilterRegex,
)
.addRow(
g.row('CPU Usage')
Expand Down
1 change: 1 addition & 0 deletions dashboards/resources/workload-namespace.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ local template = grafana.template;
g.dashboard(
'%(dashboardNamePrefix)sCompute Resources / Namespace (Workloads)' % $._config.grafanaK8s,
uid=($._config.grafanaDashboardIDs['k8s-resources-workloads-namespace.json']),
datasource_regex=$._config.datasourceFilterRegex,
)
.addRow(
g.row('CPU Usage')
Expand Down
1 change: 1 addition & 0 deletions dashboards/resources/workload.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ local template = grafana.template;
g.dashboard(
'%(dashboardNamePrefix)sCompute Resources / Workload' % $._config.grafanaK8s,
uid=($._config.grafanaDashboardIDs['k8s-resources-workload.json']),
datasource_regex=$._config.datasourceFilterRegex,
)
.addRow(
g.row('CPU Usage')
Expand Down

0 comments on commit 58c4663

Please sign in to comment.