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 usessadfto 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 usesawkandmlrto extract command processing times frompuppetdb.logfiles.top-api-calls.sh: Extracts the 10 most popular API calls from*-access.logalong with their median and max duration grouped into 30 minute periods (Puppet$runinterval). Usesawkandmlr.