Where is located saved data states of panel settings?

I’m trying to figure out where the custom panel state settings are saved. I understood that the settings in the code should be stored in the “this.panel” property.

  1. But where are they stored after the page is closed? In the sqlite database?
  2. Also I would like to know what types of data can be stored on this property?
  3. Is it possible to store arrays and objects there? Will they persist after the page is closed?


Yes, in the dashboard table, there’s a column named data which stores the dashboard definition as json.

You can set properties on this.panel and they can be javascript objects, arrays etc. It’s json and javascript so you can store basically whatever suits you. All values that you set on this.panel will be persisted on the dashboard in the database when you save the dashboard in Grafana.


1 Like