Puppet Class: puppet_metrics_dashboard::dashboards::graphite

Defined in:
manifests/dashboards/graphite.pp

Summary

Installs graphite example dashboards

Overview

Installs graphite example dashboards



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'manifests/dashboards/graphite.pp', line 6

class puppet_metrics_dashboard::dashboards::graphite {
  $_uri = $puppet_metrics_dashboard::use_dashboard_ssl ? {
    true    => 'https',
    default => 'http',
  }

  grafana_dashboard { 'Graphite Puppetserver Performance':
    grafana_url      => "${_uri}://localhost:${puppet_metrics_dashboard::grafana_http_port}",
    grafana_user     => 'admin',
    grafana_password => $puppet_metrics_dashboard::grafana_password,
    content          => file('puppet_metrics_dashboard/Graphite_Puppetserver_Performance.json'),
    require          => Grafana_datasource['influxdb_graphite'],
  }
}