This gist contains various scripts for scraping metrics. Mostly useful for processing the contents of Puppet Enterprise support bundles:
sar2influx.rb
: A Ruby script that usessadf
to turn SAR archives into InfluxDB line format. For best results, run from a Linux VM using a recent operating system. Such as Ubuntu 22.04.pdb2influx.sh
: A bash script that usesawk
andmlr
to extract command processing times frompuppetdb.log
files.top-api-calls.sh
: Extracts the 10 most popular API calls from*-access.log
along with their median and max duration grouped into 30 minute periods (Puppet$runinterval
). Usesawk
andmlr
.