Examples🔗
A collection of sample Grafana dashboards written in PHP is available in the grafana/grafana-foundation-sdk repository.
Each example showcases different aspects of building dashboards as code:
custom-panel
: definition and usage of a custom Panel typecustom-query
: definition and usage of a custom Query typegrafana-agent-overview
:- reproduction of the "Grafana Agent Overview" dashboard from the Grafana Agent integration available in Grafana Cloud.
- dashboard variables
table
panelstimeseries
panelsprometheus
queries
linux-node-overview
:- reproduction of the "Grafana Agent Overview" dashboard from the Linux Server integration available in Grafana Cloud.
- dashboard variables
- dashboard links
stat
panelstable
panelstimeseries
panelsprometheus
queries
red-method
:- example of a dashboard following the RED method