Skip to content

Commit 6d0f2c8

Browse files
authored
Merge pull request #220 from coreymbe/PIE-1643-system_metrics_format
(PIE-1643) System Metrics Formatting
2 parents 9e71fb8 + 6541a1c commit 6d0f2c8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/nightly_testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Setup Spec Test Matrix
4040
id: set-matrix
4141
run: |
42-
echo "matrix={\"platforms\":[\"rhel-8\",\"rhel-9\",\"ubuntu-2204-lts\"]}" >> $GITHUB_OUTPUT
42+
echo "matrix={\"platforms\":[\"rhel-7\",\"rhel-8\",\"rhel-9\"]}" >> $GITHUB_OUTPUT
4343
- name: Setup Acceptance Test Matrix
4444
id: build-matrix
4545
run: |

lib/puppet/application/splunk_hec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ def send_pe_metrics(data, sourcetype)
4646
event['host'] = name
4747
if content[serv.to_s].is_a?(Array)
4848
event['event'] = {}
49-
event['event']['metrics'] = content[serv.to_s]
49+
event['event']['metrics'] = []
50+
content[serv.to_s].each do |metric|
51+
event['event']['metrics'] << { metric['name'].to_s => metric['value'].to_f }
52+
end
5053
else
5154
event['event'] = content[serv.to_s]
5255
end

0 commit comments

Comments
 (0)