Unable to alter provisioned dashboards

Using the latest version of PMM via Docker and wondering what the methodology would be to alter the provisioned dashboards? Normally with Grafana we would be able to use the Grafana API but it seems that the Nginx coontainer doesn’t allow for that and everything has to be done via the API calls listed via Swagger. So other than creating a new dashboard how can we add our own panels to the provisioned dashboards that come with PMM?

Well, the simplest way is to just make a copy of the dashboard and edit to your hearts content…it’s important you name the dashboard something different or it’ll get overwritten on the next update. I’d have to let one of the real experts chime in on how you then make that new dashboard available on the nav menu…I only know how to favorite it or locate it through the dashboards page.

On any dashboard click the gear icon in the upper right corner and choose “make editable”. when you click back you’l be able to edit the properties and save as a new dashboard…then you can add/remove panels to your hearts content!

Yeah been there and done that, it’s useless unless we could delete the one that comes with PMM out of the box so we can use the new one in its place which it won’t do since it’s provisioned. Don’t really need 2 PostgreSQL Summary dashboards or others to confuse people with.

Hey @Timothy_Elder,
We don’t block any APIs available from Grafana, Prometheus/VictoriaMetrics, ClickHouse, etc.

For grafana API, use the /graph/api path:

https://<pmmserver>/graph/api/org
https://<pmmserver>/graph/api/dashboards/home

You should be able to automate any changes.

Speaking of changes, if you make improvements to the dashboards, PLEASE, PLEASE, create a pull request:

Can’t make promises, but there would be a very high likelihood that your PR would get merged if the improvement is generic for all pgsql users.

I believe the problem was that nginx was telling me that the route wasn’t valid for the API. I’ll try what you posted and see if that works and report back.

Also is there plans to move to a newer version of Grafana? Noticed how PMM uses v9.2 and the latest is v11

PMMv3 will be released soon which will include the latest Grafana.