Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions plugins/inputs/puppetagent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@ plugin ordering. See [CONFIGURATION.md][CONFIGURATION.md] for more details.
# Reads last_run_summary.yaml file and converts to measurements
[[inputs.puppetagent]]
## Location of puppet last run summary file
## Use the following path for puppet version 7+ ($publicdir/last_run_summary.yaml)
## location = "/opt/puppetlabs/puppet/public/last_run_summary.yaml"
location = "/var/lib/puppet/state/last_run_summary.yaml"
```

If you use a distro packaged puppet the `$publicdir` might be different from above.

By default, this file is not readable by the `telegraf` user.
You can adjust file permissions by configuring the `lastrunfile` setting in Puppet.

## Metrics

### PuppetAgent int64 measurements
Expand Down
2 changes: 2 additions & 0 deletions plugins/inputs/puppetagent/sample.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Reads last_run_summary.yaml file and converts to measurements
[[inputs.puppetagent]]
## Location of puppet last run summary file
## Use the following path for puppet version 7+ ($publicdir/last_run_summary.yaml)
## location = "/opt/puppetlabs/puppet/public/last_run_summary.yaml"
location = "/var/lib/puppet/state/last_run_summary.yaml"
Comment on lines 3 to 6

@Hipska Hipska Jul 22, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simply update the example value, commented out values mean they are the default.

Suggested change
## Location of puppet last run summary file
## Use the following path for puppet version 7+ ($publicdir/last_run_summary.yaml)
## location = "/opt/puppetlabs/puppet/public/last_run_summary.yaml"
location = "/var/lib/puppet/state/last_run_summary.yaml"
## Location of puppet last run summary file ($publicdir/last_run_summary.yaml)
#location = "/var/lib/puppet/state/last_run_summary.yaml"

Edit: GitHub didn't load earlier comments, it seems I suggest similar as what @skartikey also suggested earlier.

I would add in README that the $publicdir for Puppet 7+ is /opt/puppetlabs/puppet/public.

Loading