collectd-puppet-监控傀儡代理的Collectd插件-Steve Traylen Configuration Generated data Authors Copyright Li...

collectd-puppet-监控傀儡代理的Collectd插件-Steve Traylen

发布:2020-12-23 14:18:47.950164

做者:Steve Traylen

做者邮箱:steve.traylen@cern.ch

首页:https://github.com/cernops/collectd-puppet

文档:None

下载连接

Collectd Plugin for Puppet

Configuration

.. code:: apachepython

TypesDB "/usr/share/collectd/puppet_types.db" Globals true git

LogTraces true Interactive false Import "puppet" PATH "/opt/puppetlabs/puppet/cache/state/last runsummary.yaml" MaxRetention 21600 github

The MaxRetention setting represents, in seconds, for how long the value of the metrics will be retained if there's no fresh data to publish during the Collectd loop. Be aware that this setting depends on the global Timeout. For instance, if you want a retention of 6 hours and the Collectd timeout is set to 2 then you'll have to halve value and set it to (6*60*60)/2.apache

Generated data

The plugin parses /opt/puppetlabs/puppet/cache/state/last_run_summary.yaml and reports several single values extracted from there.oop

It will only send data if there has been a Puppet run after the last time Collectd polled. This is monitored using a state file located in /var/lib/collectd/puppet.state. To force a data point just delete it.this

These are the values that are currently being dispatched:spa

  • puppet/boolean-compiled (flag denoting if the catalog compiled (1 or 0))
  • puppet/seconds-config_retrieval
  • puppet/seconds-total_time
  • puppet/resources-changed
  • puppet/resources-corrective_change
  • puppet/resources-failed
  • puppet/resources-failedtorestart
  • puppet/resources-outofsync
  • puppet/resources-restarted
  • puppet/resources-scheduled
  • puppet/resources-skipped
  • puppet/resources-total
  • puppet/timeref-lastrun (epoch of last puppet run (seconds))

Authors

Steve Traylen steve.traylen@cern.ch Nacho Barrientos nacho.barrientos@cern.ch.net

Copyright

2018 CERN插件

License

Apache-II License代理

Development notes

Don't forget to bump the schema_version if you modify the data format.

Copy from pypi.org

查询时间:7.772ms
渲染时间:7.896ms

本文同步分享在 博客“zhenruyan”(other)。
若有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一块儿分享。

相关文章
相关标签/搜索