Auto generate dashboard with pnp4nagios data - all hosts/services

Greetings,
I have nagios and pnp4nagios files autogenerated via shell and templates.
I am looking to extend the same functionality to grafana templates/queries.
The pnp4nagios plugins works fine under grafana / explore. I am able to
generate queries/graphs from the gui; however, I would like a way to auto
populate the dashboard with the query fields filled out.
It seems like a generic search/replace is not the way to go.
Thanks and Happy New Year’s
Chris

Greetings,
So, I have gotten to the point where I can auto generated the json with
a simple search replace and load via the gui. I converted the same json
and tried to load it as yaml file. No errors; however, it does not load.

Any thoughts ?

Thanks
Chris