Skip to content

Commit

Permalink
Merge pull request #870 from shivam99aa/master
Browse files Browse the repository at this point in the history
Adding support for datasource_regex in resources dashboards
  • Loading branch information
povilasv authored Sep 20, 2023
2 parents 63337d9 + 58c4663 commit baffdc1
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 baffdc1

Please sign in to comment.