Skip to content

Commit

Permalink
feat: Rest sensor support for 9.10 and below
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss authored and cgrinds committed Jan 20, 2022
1 parent 6dbe7e0 commit 7409bdb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions conf/rest/9.10.0/sensor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Sensor
query: api/private/cli/system/node/environment/sensors
object: environment_sensor

counters:
- ^^node => node
- ^^name => sensor
- ^type => type
- ^warn_hi => warning_high
- ^warn_low => warning_low
- ^discrete_state => discrete_state
- ^discrete_value => discrete_value
- ^state => threshold_state
- ^units => unit
- value => threshold_value
- crit_hi => critical_high
- crit_low => critical_low

plugins:
- LabelAgent:
value_to_num: # metric label zapi_value rest_value `default_value`
- status threshold_state normal normal `0`

export_options:
include_all_labels: true
1 change: 1 addition & 0 deletions conf/rest/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ objects:
Qtree: qtree.yaml
Quota: quota.yaml
Shelf: shelf.yaml
Sensor: sensor.yaml

0 comments on commit 7409bdb

Please sign in to comment.