Commits on Jan 8, 2020

  1. (PE-27794) collect data from ace and bolt (puma) services

    With this commit, collect ace and bolt data: status and gc-status.
    
    Collects nothing unless PE is newer than 2019.4.0, in puma_metrics.rb.
    Modify to match when ace and bolt status endpoints are enabled in PE.
    tkishel committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    1789914 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2020

  1. (SLV-631) add process tracking

    Added tracking for the major puppet services using pidstat
    RandellP committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    935cf5f View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2020

  1. (bug) rename puma_metrics.rb, correct urls and ssl

    uma_metrics.rb should be uma_metrics
    urls should be /admin/status and /admin/gc_stat
    add ssl ca cert and key to https requests
    tkishel committed Jan 16, 2020
    Configuration menu
    Copy the full SHA
    20dcf5e View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2020

  1. Merge pull request #35 from puppetlabs/SLV-631

    (SLV-631) add process tracking
    johnduarte authored Jan 22, 2020
    Configuration menu
    Copy the full SHA
    2e08935 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2020

  1. (maint) update to match version of puma with metrics

    Thomas Kishel authored Jan 23, 2020
    Configuration menu
    Copy the full SHA
    9bfaf8c View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2020

  1. Configuration menu
    Copy the full SHA
    f392f7b View commit details
    Browse the repository at this point in the history
  2. Merge pull request #36 from tkishel/PE-27794_add_a_puma_status_endpoint

    (PE-27794) collect data from ace and bolt (puma) services
    jarretlavallee authored Jan 30, 2020
    Configuration menu
    Copy the full SHA
    569f942 View commit details
    Browse the repository at this point in the history
  3. (maint) normalize json2graphite.rb and json2timeseriesdb

    These files could/should be functionaly identical:
    
    puppetlabs-puppet-metrics-viewer/json2graphite.rb
    puppetlabs-puppet_metrics_collector/files/json2timeseriesdb
    
    With this commit:
    
    Bi-directional merge of changes.
    Added comments.
    Replaced unnessary double-quotes with single-quotes.
    tkishel committed Jan 30, 2020
    Configuration menu
    Copy the full SHA
    e22647b View commit details
    Browse the repository at this point in the history
  4. (bug) use full path to puppet in puma_metrics

    Because in cron ...
      X-Cron-Env: <PATH=/usr/bin:/bin>
    tkishel committed Jan 30, 2020
    Configuration menu
    Copy the full SHA
    efdd6bf View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2020

  1. Merge pull request #38 from tkishel/use_full_path_to_puppet

    (bug) use full path to puppet in puma_metrics
    RandellP authored Jan 31, 2020
    Configuration menu
    Copy the full SHA
    19dbebb View commit details
    Browse the repository at this point in the history
  2. (maint) sync up what bolt and ace are called

    new metrics from bolt and ace call themselves bolt and ace, where as thier processes are called ace-server and bolt-server.  Updated the generate_system_metrics to change to ace and bolt for consistency.  Makes the graphite2json scripts which process those names cleaner.
    RandellP committed Jan 31, 2020
    Configuration menu
    Copy the full SHA
    174129d View commit details
    Browse the repository at this point in the history
  3. Merge pull request #39 from puppetlabs/maint

    (maint) sync up what bolt and ace are called
    Thomas Kishel authored Jan 31, 2020
    Configuration menu
    Copy the full SHA
    b270ac2 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'master' into normalize_json_to_script

    Thomas Kishel authored Jan 31, 2020
    Configuration menu
    Copy the full SHA
    6ceb9e1 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #37 from tkishel/normalize_json_to_script

    (maint) normalize json2graphite.rb and json2timeseriesdb
    RandellP authored Jan 31, 2020
    Configuration menu
    Copy the full SHA
    bc53d79 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2020

  1. (maint) normalize json2graphite.rb and json2timeseriesdb

    These files could/should be functionaly identical:
    
    puppetlabs-puppet-metrics-viewer/json2graphite.rb
    puppetlabs-puppet_metrics_collector/files/json2timeseriesdb
    
    With this commit:
    
    Bi-directional merge of changes.
    Added comments.
    Replaced unnessary double-quotes with single-quotes.
    tkishel authored and RandellP committed Feb 6, 2020
    Configuration menu
    Copy the full SHA
    cc79aa5 View commit details
    Browse the repository at this point in the history
  2. (SLV-771) Fix bug where process data is missed

    The process data gathering greps process names for the ones we wanted to track... then passes the list to sar to track. If a process passed to sar exists when sar starts, but exits before sar gathers the first round of data, then sar will crash while printing the average summaries. Thus we lose data.
    
    Also, if the process exited before sar ran, there would be no data and some of the generate_system_metrics code would crash expecting to find that process in the sar results.
    
    Fine tuned the process grep to avoid matching processes we don't care about.
    Put a catch to not crash if one of the processes we expect doesn't have any data.
    RandellP committed Feb 6, 2020
    Configuration menu
    Copy the full SHA
    3cd863f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f116d27 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2020

  1. Merge pull request #42 from puppetlabs/SLV-771

    (SLV-771) Fix bug where process data is missed
    Thomas Kishel authored Feb 7, 2020
    Configuration menu
    Copy the full SHA
    86e9aa4 View commit details
    Browse the repository at this point in the history
  2. (SLV-767) Updated measurement tagging

    Fixed regex that looked for puppet_server instead of puppetserver
    Added regex's for bolt and ace
    This means all of the services consistently get replaced and tagged instead of just some.
    removed the gc-stats regex as it wasn't used and was making it harder to make graphs using it.
    RandellP committed Feb 7, 2020
    Configuration menu
    Copy the full SHA
    2b7bab9 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2020

  1. (PIE-178) Print metrics as line-delimited JSON

    This commit updates the scripts that collect metrics from multiple
    hosts, amq_metrics, puma_metrics, and tk_metrics, to write each
    dataset to STDOUT with a trailing newline. The resulting output
    stream is therefore in line-delimited JSON format, which is easy
    to parse.
    
    Prior to this commit, datasets from multiple hosts were mashed together
    without separators, which was difficult to parse when used as input
    for other scripts.
    Sharpie committed Feb 8, 2020
    Configuration menu
    Copy the full SHA
    fcd6acd View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2020

  1. Merge pull request #44 from Sharpie/PIE-178-fix-metric-output

    (PIE-178) Print metrics as line-delimited JSON
    jarretlavallee authored Feb 10, 2020
    Configuration menu
    Copy the full SHA
    0f3a3fd View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2020

  1. Allow for handling multiple hashes with STDIN

    Prior to this commit the json2timeseriesdb script would fail with the
    STDIN input method. The collection script outputs multiple newline
    delimited hashes, which caused the JSON parser to fail. This commit
    updates the json2timeseriesdb script to be able to handle this inpupt
    format.
    Jarret Lavallee committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    3e34526 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2020

  1. Configuration menu
    Copy the full SHA
    25f0230 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2020

  1. Merge pull request #45 from jarretlavallee/fix/master/stdin_multiple_…

    …hashes
    
    Allow for handling multiple hashes with STDIN
    Thomas Kishel authored Feb 18, 2020
    Configuration menu
    Copy the full SHA
    6f67271 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2020

  1. Configuration menu
    Copy the full SHA
    ac5e935 View commit details
    Browse the repository at this point in the history
  2. (bug) Use ARGV instead of ARGF

    Do not check ARGF.filename for '-' as (empirically) it always contains '-'
    
    Actually, do not use ARGF as OptionParser.parse! will remove all of its options
    from ARGV, leaving only (optional) filenames.
    
    In addition, this guards against STDIN and '-' mismatches,
    and handles STDIN in the main data_files loop.
    tkishel committed Feb 19, 2020
    Configuration menu
    Copy the full SHA
    e7ebac2 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #51 from tkishel/argf_is_arguable

    (bug) Use ARGV instead of ARGF
    jarretlavallee authored Feb 19, 2020
    Configuration menu
    Copy the full SHA
    60a2265 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2020

  1. (refactor) reorganize manifests and scripts

    Reorganize files to prepare for refactoring manifests and scripts.
    tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    094155e View commit details
    Browse the repository at this point in the history
  2. (refactor) convert puppet-metrics-collector template

    Convert from template to a script with parameters with defaults.
    tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    6c9de02 View commit details
    Browse the repository at this point in the history
  3. (refactor) convert tidy_cron template

    Convert from template to a script with parameters with defaults
    tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    5077bc2 View commit details
    Browse the repository at this point in the history
  4. (refactor) consolidate and normalize metrics collection scripts

    Consolidate duplicate metrics collection code into a library.
    Normalize reading of configuration data.
    Normalize service metrics output-dir parameter.
    Normalize the 'processors' system metrics type parameter.
    Normalize.
    tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    b03e351 View commit details
    Browse the repository at this point in the history
  5. (maint) remove now incorrect comments

    There can be only one!
    tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    c5675d4 View commit details
    Browse the repository at this point in the history
  6. (refactor) reorganize into service and system classes

    Reorganize into service and system classes
    Move duplicate code from service classes to defined types
    Move templated per-service tidy scripts to one common 'metrics_tidy' script
    Simplify the 'create-metrics-archive' script, removing the one constant parameter
    Do not symlink the 'create-metrics-archive' script to '/opt/puppetlabs/bin/'
    Store configuration and code in separate 'config' and 'scripts' directories
    Eliminate the '/opt/puppetlabs/puppet_metrics_collector/bin' directory
    Add puppet code to delete the resulting legacy directories and files
    Resolve various puppet-lint and rubocop issues
    tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    83d0d83 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    20ee82d View commit details
    Browse the repository at this point in the history
  8. (refactor) consolidate and normalize metrics collection scripts

    Consolidate duplicate metrics collection code into a library.
    Normalize reading of configuration data.
    Normalize service metrics output-dir parameter.
    Normalize the 'processors' system metrics type parameter.
    Normalize.
    tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    0d99ffb View commit details
    Browse the repository at this point in the history
  9. (refactor) reorganize into service and system classes

    Reorganize into service and system classes
    Move duplicate code from service classes to defined types
    Move templated per-service tidy scripts to one common 'metrics_tidy' script
    Simplify the 'create-metrics-archive' script, removing the one constant parameter
    Do not symlink the 'create-metrics-archive' script to '/opt/puppetlabs/bin/'
    Store configuration and code in separate 'config' and 'scripts' directories
    Eliminate the '/opt/puppetlabs/puppet_metrics_collector/bin' directory
    Add puppet code to delete the resulting legacy directories and files
    Resolve various puppet-lint and rubocop issues
    tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    39898c3 View commit details
    Browse the repository at this point in the history
  10. This commit changes the create and tidy scripts to:

    * Accept arguments instead of positional parameters in metrics_tidy
    * Pipe the results of find to tar directly
    * Changes path validation to ensure the target directory ends in one of
      the services we collect metrics for
    * Use lowercase variables to we're not being yelled at
    m0dular authored and tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    11bf383 View commit details
    Browse the repository at this point in the history
  11. PR changes

    Change the parameter in the tidy and create scripts to -d and
    --directory
    
    Comments related to parameter expansion and adding valid paths to the
    tidy script
    m0dular authored and tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    05a7b48 View commit details
    Browse the repository at this point in the history
  12. Add timestamp to directory inside tarball

    m0dular authored and tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    4f69abd View commit details
    Browse the repository at this point in the history
  13. whitespace

    m0dular authored and tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    6a5d84f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    1644dd2 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    08ec6a1 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    9494c0d View commit details
    Browse the repository at this point in the history
  17. (maint) redirect stdout in cron to dev null

    Just like pe_metric.pp
    tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    3b26145 View commit details
    Browse the repository at this point in the history
  18. (maint) lint for quoting

    tkishel committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    d8d2f8a View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2020

  1. Configuration menu
    Copy the full SHA
    237ef39 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #43 from puppetlabs/SLV-767

    (SLV-767) Updated measurement tagging
    Thomas Kishel authored Feb 21, 2020
    Configuration menu
    Copy the full SHA
    7cae4c4 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' into refactor_code_and_scripts_v2

    Thomas Kishel authored Feb 21, 2020
    Configuration menu
    Copy the full SHA
    806efb7 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #47 from tkishel/refactor_code_and_scripts_v2

    (refactor) reorganize into service and system classes
    jarretlavallee authored Feb 21, 2020
    Configuration menu
    Copy the full SHA
    bcf37f0 View commit details
    Browse the repository at this point in the history
  5. Better error handling in tidy script

    In this commit, we create a temp file to hold stdout and stderr.  We set
    a trap on error, which will send the temp file to stdout.  This has the
    effect of sending the output upon error to mail when run via cron.
    m0dular committed Feb 21, 2020
    Configuration menu
    Copy the full SHA
    7a72f69 View commit details
    Browse the repository at this point in the history