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

  • 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

主站蜘蛛池模板: 玉溪市| 公安县| 永丰县| 哈巴河县| 千阳县| 东丽区| 革吉县| 电白县| 邹平县| 龙南县| 沁阳市| 防城港市| 石城县| 屯留县| 沿河| 宁强县| 五指山市| 兴国县| 清镇市| 司法| 凤山县| 嘉荫县| 塔城市| 临夏县| 信丰县| 中牟县| 杭锦后旗| 百色市| 无极县| 柳河县| 平安县| 禹州市| 济南市| 卫辉市| 枣阳市| 望都县| 五指山市| 合水县| 灵寿县| 会同县| 梁山县|