Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the system metrics timestamp key #31

Conversation

jarretlavallee
Copy link
Contributor

@jarretlavallee jarretlavallee commented Nov 18, 2019

Prior to this commit, the metrics timestamp key name in the output file
was time_stamp_obj, which caused failures when processing with
json2timeseries.rb this commit updates the key to be timestamp to
ensure compatibility with the processing scripts.

Processing script:
https://github.com/puppetlabs/puppetlabs-puppet_metrics_collector/blob/master/files/json2timeseriesdb#L74

Tk metrics:
https://github.com/puppetlabs/puppetlabs-puppet_metrics_collector/blob/master/files/tk_metrics#L152

Along with the timestamp change, this commit changes the output to be floats instead of integers. This allows it to be parsed by the json script as it expects the values to be numeric.

Prior to this commit, the metrics timestamp key name in the output file
was `time_stamp_obj`, which caused failures when processing with
`json2timeseries.rb` this commit updates the key to be `timestamp` to
ensure compatibility with the processing scripts.
Prior to this commit, the system metrics values were strings. This
commit changes them to be floats. This adds compatibility with the
existing json2timeseries parsing script as it looks for numeric values.
@RandellP RandellP merged commit 5f97444 into puppetlabs:master Nov 22, 2019
@jarretlavallee jarretlavallee deleted the fix/master/generate_metrics_timestamp branch November 23, 2019 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants