- What Grafana version and what operating system are you using?
Grafana 11.6.0 - Windows 11
- What are you trying to achieve?
Upgrade custom data source plugins to work with Grafana 11.X
- How are you trying to achieve it?
Updates to the following repo:
- What happened?
When I attempt to upgrade the repo linked above to use the 11.6.0 Grafana packages and use within Grafana 11.6.0, I get the error “changePlugin is not a function” thrown from actions.ts. This occurs when I choose one of my custom datasource plugins in a Time series panel and the data source returns data which results in the panel entering the “Data is missing a time field” state. After clicking the “Switch to table” button on the panel is when the error occurs.
The data sources work fine if using a different visualization type and also work fine from within Explore.
I’m speculating the issue is related to the new Scenes functionality in 11.X, as the panel type when calling the function here is of type vizPanel, which is a different in behavior with 11.X.
It’s not clear to me if this is an issue with just the time series panel, or possibly an issue with my custom datasource plugins.
- What did you expect to happen?
The “Switch to table” button would switch to the table view.
- Can you copy/paste the configuration(s) that you are having problems with?
No specific configuration.
- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
actions.ts:82 Uncaught (in promise) TypeError: o.changePlugin is not a function
at actions.ts:82:13
at redux-thunk.mjs:5:14
at M (PanelDataErrorView.tsx:42:5)
at Object.$t (react-dom.production.min.js:54:317)
at Ot (react-dom.production.min.js:54:471)
at an (react-dom.production.min.js:55:35)
at Hc (react-dom.production.min.js:105:68)
at Vc (react-dom.production.min.js:106:380)
at react-dom.production.min.js:117:104
at Tc (react-dom.production.min.js:273:42)
- Did you follow any online instructions? If so, what is the URL?
N/A