grafana / jsonnet-libs

Grafana Labs' Jsonnet libraries
Other
625 stars 160 forks source link

Add patch_variables #1310

Closed v-zhuravlev closed 2 months ago

v-zhuravlev commented 2 months ago

Useful to change any variable once dashboard is created, for example to change allValue to cluster from .+ to .*. Match works by name:

Example:

//patch file.libsonnet:
{
  cluster+: {
    allValue: '.*',
  },
}