grafana / grafonnet

Jsonnet library for generating Grafana dashboards.
https://grafana.github.io/grafonnet/
Apache License 2.0
320 stars 18 forks source link

g.panel.timeSeries.fieldConfig.defaults.custom.withInsertNulls missing? #188

Closed berlincount closed 1 month ago

berlincount commented 3 months ago

Hello,

probably a bug in the Grafana schema, but g.panel.timeSeries.fieldConfig.defaults.custom.withInsertNulls - used to show gaps in the data as gaps in the graph seems to be missing.

Any workaround while this needs implementation?

Cheers,

count

Duologic commented 1 month ago

This'll get fixed in future versions, I'd suggest working around by simply adding a JSON blurb to your panel:

panel + {
  fieldConfig+: {
    defaults+: {
      custom+: {
        insertNulls: '<value>',
      },
    },
  },
}