https://github.com/bzed/puppet-module-leonardo
Puppet Module for Leonardo (https://github.com/PrFalken/leonardo/)
https://github.com/bzed/puppet-module-leonardo
Last synced: 3 months ago
JSON representation
Puppet Module for Leonardo (https://github.com/PrFalken/leonardo/)
- Host: GitHub
- URL: https://github.com/bzed/puppet-module-leonardo
- Owner: bzed
- License: apache-2.0
- Created: 2014-08-15T21:51:50.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-28T06:49:55.000Z (about 12 years ago)
- Last Synced: 2025-10-23T11:24:05.382Z (7 months ago)
- Homepage:
- Size: 328 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Leonardo Puppet module
======================
Leonardo is a Dashboard for Graphite written by [PrFalken](https://github.com/PrFalken)
https://github.com/PrFalken/leonardo
Warning
-------
Currently, this module depends on the experimental `each` function from Puppet's future parser.
Usage
-----
```puppet
class { 'leonardo':
graphite_url => 'graphite.example.com',
template_dir => '/var/www/leonardo/graphs',
}
```
### leonardo::dashboard
```puppet
leonardo::dashboard { $::hostname:
target => '/path/to/dash.yaml',
name => $::hostname,
description => 'System Metrics',
include_properties => ['common.yaml'],
}
```
### leonardo::graph
```puppet
leonardo::graph { 'cpu':
target => '/path/to/cpu.graph',
parameters => { 'title' => 'Combined CPU Usage',
'vtitle' => 'percent',
'area' => 'stacked' },
fields => {
'iowait' => { 'data' => "sumSeries(collectd.${::hostname}.cpu*.cpu-wait)",
'cacti_style' => 'true',},
'system' => { 'data' => "sumSeries(collectd.${::hostname}.cpu*.cpu-system)",
'cacti_style' => 'true',},
'user' => { 'data' => "sumSeries(collectd.${::hostname}.cpu*.cpu-user)",
'cacti_style' => 'true',},
},
```
### leonardo::properties
```puppet
leonardo::properties { 'common.yaml':
target => '/path/to/common.yaml',
properties => { 'linewidth' => '0.8',
'area_alpha' => '0.7',
'timezone' => 'America/Los_Angeles',
'hide_legend' => 'false',
'field_linewidth' => '2', },
}
```
Exported graphs
---------------
This modules supports exporting the graph resources and collecting them on the server running leonardo. See `tests/exported.pp` and `tests/collector.pp` for examples.