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

feat: add information to which node/controller a disk belongs #1542

Merged
merged 1 commit into from
Nov 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions conf/rest/9.12.0/disk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ plugins:
- LabelAgent:
value_to_num:
- new_status outage - - `0` #ok_value is empty value, '-' would be converted to blank while processing.
join:
- index `_` node,disk
- MetricAgent:
compute_metric:
- uptime MULTIPLY stats.power_on_hours 60 60 #convert to second for zapi parity
Expand All @@ -44,6 +46,7 @@ export_options:
instance_keys:
- node
- disk
- index
instance_labels:
- type
- model
Expand Down
7 changes: 5 additions & 2 deletions conf/zapi/cdot/9.8.0/disk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ counters:
plugins:
- LabelAgent:
# metric label zapi_value rest_value `default_value`
value_to_num:
- new_status outage - - `0` #ok_value is empty value, '-' would be converted to blank while processing.
value_to_num:
- new_status outage - - `0` #ok_value is empty value, '-' would be converted to blank while processing.
join:
- index `_` node,disk

export_options:
instance_keys:
- node
- disk
- index
instance_labels:
- type
- model
Expand Down
Loading