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

  • 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

主站蜘蛛池模板: 金寨县| 仪征市| 兰西县| 梅州市| 上高县| 紫云| 横山县| 边坝县| 建瓯市| 乌兰浩特市| 惠州市| 河东区| 庆云县| 峨眉山市| 灌南县| 墨竹工卡县| 梧州市| 三都| 奉化市| 石棉县| 响水县| 长葛市| 贵州省| 桐梓县| 庄浪县| 顺平县| 连云港市| 西昌市| 汤阴县| 绥阳县| 武陟县| 南汇区| 孟州市| 丹江口市| 福鼎市| 长沙市| 云霄县| 张家口市| 招远市| 如皋市| 巴马|