You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I am trying to customise my Grafana to sort all the dashboards to their respective folders. I noticed that the main.libsonnet simply uses mixins to display the dashboards in "default" folder.
I decided to make a custom mixin for each of the categories it includes (such as alert manager, grafana, k8s, node exporter, etc) using addMixin and set the dashboardFolder respectively.
Now everything is displaying properly except for the dashboards provided by the node exporter mixin. Any of them! For example, node exporter / AIX and node exporter / Nodes both show metrics correctly in the default dashboard config, but when I display them through a mixin (i.e. in its folder), the panels in these dashboards show no data.
My configuration jsonnet:
...
local NodeExporterMixin = addMixin({
name:'node-exporter-mixin',
dashboardFolder:'Node-Exporter',
mixin: (import'github.com/prometheus/node_exporter/docs/node-mixin/mixin.libsonnet')
});
local kp =
(import'kube-prometheus/main.libsonnet') + (import'kube-prometheus/addons/node-ports.libsonnet') +
{
values+:: {
common+: {
namespace:'monitoring',
},
// taken from github.com/prometheus-operator/kube-prometheus/docs/customizations/developing-prometheus-rules-and-grafana-dashboards.md#mixinsgrafana+: {
// clear all dashboards in the default folderdashboards: {},
folderDashboards+:: NodeExporterMixin.grafanaDashboards + ...,
},
},
};
Its specifically Node exporter dashboards that differ. Is there any additional config added for the default config?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, I am trying to customise my Grafana to sort all the dashboards to their respective folders. I noticed that the main.libsonnet simply uses mixins to display the dashboards in "default" folder.
I decided to make a custom mixin for each of the categories it includes (such as alert manager, grafana, k8s, node exporter, etc) using
addMixinand set thedashboardFolderrespectively.Now everything is displaying properly except for the dashboards provided by the node exporter mixin. Any of them! For example,
node exporter / AIXandnode exporter / Nodesboth show metrics correctly in the default dashboard config, but when I display them through a mixin (i.e. in its folder), the panels in these dashboards show no data.My configuration jsonnet:
Its specifically Node exporter dashboards that differ. Is there any additional config added for the default config?
Beta Was this translation helpful? Give feedback.
All reactions