官术网_书友最值得收藏!

  • Puppet 2.7 Cookbook
  • John Arundel
  • 167字
  • 2021-04-02 18:19:59

Creating graphical reports

Let's face it, bosses like pretty pictures. Puppet can produce report data in a form suitable for processing by the RRD (Round-Robin Database) graph library, to produce a graphical representation of metrics such as the runtime on each client.

Getting ready

You will need to install the RRD tools and libraries for Ruby on your system. For Ubuntu, run the following command:

# apt-get install rrdtool librrd-ruby

How to do it…

Add the rrdgraph report type to your puppet.conf as follows:

reports = store,rrdgraph

How it works…

For each run, Puppet will record data in the client's RRD directory (the default is /var/lib/puppet/rrd/<clientname>). It will create graphs in a PNG format for events, resources, and retrieval time, while the raw data is available to you in the .rrd files if you want to process it further using third-party RRD tools.

There's more…

For more detailed reporting and graphing, you can use Puppet Dashboard.

See also

主站蜘蛛池模板: 长岭县| 乐平市| 化德县| 淅川县| 惠州市| 鞍山市| 遂昌县| 常宁市| 澎湖县| 苏尼特左旗| 安宁市| 乌拉特中旗| 西宁市| 忻州市| 怀柔区| 阜康市| 长沙市| 儋州市| 上饶县| 邓州市| 张北县| 岢岚县| 盐亭县| 阿拉善左旗| 阿克陶县| 碌曲县| 斗六市| 固阳县| 蒙山县| 乐山市| 隆回县| 重庆市| 聊城市| 武山县| 岳阳县| 依安县| 嫩江县| 廊坊市| 白河县| 广南县| 黄梅县|