Skip to main content

Configuration

TypesDB "/usr/share/collectd/puppet_types.db"
<LoadPlugin python>
  Globals true
</LoadPlugin>

<Plugin "python">
  LogTraces true
  Interactive false
  Import "puppet"
  PATH "/opt/puppetlabs/puppet/cache/state/last_run_summary.yaml"
  MaxRetention 21600
</Plugin>

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.

Generated data

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

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.

These are the values that are currently being dispatched:

  • 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-failed_to_restart

  • puppet/resources-out_of_sync

  • puppet/resources-restarted

  • puppet/resources-scheduled

  • puppet/resources-skipped

  • puppet/resources-total

  • puppet/time_ref-last_run (epoch of last puppet run (seconds))

Authors

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

License

Apache-II License

Development notes

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

Metadata

Release files for collectd-puppet 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collectd-puppet 2.0.0
File Size Uploaded
collectd_puppet-2.0.0.tar.gz 8.2 kB Details

Release files / collectd_puppet-2.0.0.tar.gz

Download URL collectd_puppet-2.0.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
10a1c8c123e76952b7f38de844b0696b46818b367f5990ca5fb436e1e838fa93
BLAKE2b-256 checksum
How to use checksums
aec71cce05b88a0035831b8e2fd9f09187e419f8e9dfa75f38b17d7e7fbba4f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.14

Release history Release notifications | RSS feed

This release

2.0.0 This release

1 release file

1.6.0

1 release file

1.5.1

1 release file

1.5.0

1 release file

1.4.22

1 release file

1.4.8

1 release file

1.4.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page