12. Dashboards as Jsonnet local grafana = import 'grafonnet/grafana.libsonnet'; local dashboard = grafana.dashboard; local graphPanel = grafana.graphPanel; local prometheus = grafana.prometheus; local resourcePanel(resource) = graphPanel.new( title='Number of %s count by namespace' % resource, datasource='prometheus', ).addTarget( prometheus.target( expr='count(kube_%s_created) by (namespace)' % r