Add Grafana scripted dashboards; plus method to override default dashboard; graphite.data_dir

These should be useful for all standard graphite/collectd deployments:

* overview.js -- provide an overview of core metrics for nodes under a 'env' prefix
* instance.js -- detailed view of a specific node. Linked to via overview.js.
* monitoring_health.js -- key graphs showing the state of the monitoring system

I've updated the default route to point to overview.js, as the previous default was pretty useless.

Also includes a change to allow overriding of the graphite.data_dir -- the default remaining as /srv/graphite/storage

good point, I'll fix.


On 4 December 2014 at 10:25, Milos Gajdos <notifications@github.com> wrote:

> In metrics/grafana.sls:
>
> > @@ -36,6 +36,35 @@ grafana.git:
> >      - group: root
> >      - mode: 644
> >      - template: jinja
> > +    - require:
> > +      - file: /srv/grafana/application/current
> > +
> > +/srv/grafana/application/current/src/app/dashboards/instance.js:
> > +  file.managed:
> > +    - source: salt://metrics/files/grafana/instance.js
> > +    - user: root
> > +    - group: root
> > +    - mode: 755
>
> Do all these JS files have to be executable ? Just wondering. Seems a bit
> iffy to me :-)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ministryofjustice/metrics-formula/pull/31/files#r21296057>
> .
>