Skip to content

Commit

Permalink
Added validation of received data and discarding in case of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
giDai7ja committed Jul 12, 2023
1 parent 81dac5d commit 338f2ae
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ zabbix_export:
value_type: TEXT
description: 'Data collection by GPUs'
preprocessing:
- type: NOT_MATCHES_REGEX
parameters:
- '^.*Error.*$'
error_handler: DISCARD_VALUE
- type: CSV_TO_JSON
parameters:
- ','
Expand Down Expand Up @@ -127,6 +131,7 @@ zabbix_export:
- type: JSONPATH
parameters:
- '$[?(@.1 == ''{#ID}'')].6.first()'
error_handler: DISCARD_VALUE
master_item:
key: gpu.data
- uuid: a0601fa235114c8da7854df368dcbb91
Expand All @@ -142,6 +147,7 @@ zabbix_export:
- type: JSONPATH
parameters:
- '$[?(@.1 == ''{#ID}'')].5.first()'
error_handler: DISCARD_VALUE
- type: MULTIPLIER
parameters:
- '1048576'
Expand All @@ -160,6 +166,7 @@ zabbix_export:
- type: JSONPATH
parameters:
- '$[?(@.1 == ''{#ID}'')].3.first()'
error_handler: DISCARD_VALUE
- type: MULTIPLIER
parameters:
- '1048576'
Expand All @@ -178,6 +185,7 @@ zabbix_export:
- type: JSONPATH
parameters:
- '$[?(@.1 == ''{#ID}'')].4.first()'
error_handler: DISCARD_VALUE
- type: MULTIPLIER
parameters:
- '1048576'
Expand All @@ -197,6 +205,7 @@ zabbix_export:
- type: JSONPATH
parameters:
- '$[?(@.1 == ''{#ID}'')].8.first()'
error_handler: DISCARD_VALUE
master_item:
key: gpu.data
- uuid: 242afcbf5fb34b05bd0043c2cb703f2e
Expand All @@ -213,6 +222,7 @@ zabbix_export:
- type: JSONPATH
parameters:
- '$[?(@.1 == ''{#ID}'')].2.first()'
error_handler: DISCARD_VALUE
master_item:
key: gpu.data
trigger_prototypes:
Expand Down Expand Up @@ -242,6 +252,7 @@ zabbix_export:
- type: JSONPATH
parameters:
- '$[?(@.1 == ''{#ID}'')].7.first()'
error_handler: DISCARD_VALUE
master_item:
key: gpu.data
trigger_prototypes:
Expand Down

0 comments on commit 338f2ae

Please sign in to comment.