Skip to content

Commit

Permalink
Merge pull request #499 from NetApp/node_status_change
Browse files Browse the repository at this point in the history
fix: consuming node status from diagnosis-config-get-iter zapi for 7mode
  • Loading branch information
Hardikl authored Sep 9, 2021
2 parents da8ac06 + 289bb5e commit b1a40ef
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
23 changes: 23 additions & 0 deletions conf/zapi/7mode/8.6.0/status_7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# API provides over system health of a cluster

name: Status_7mode
query: diagnosis-config-get-iter
object: node

counters:
diagnosis-config-info:
- ^health => health
- ^^monitor => monitor
- mon-version => monitor_version

collect_only_labels: true

plugins:
- LabelAgent:
# metric label zapi_value rest_value `default_value`
value_to_num: 7mode_status health ok todo `0`

export_options:
instance_keys:
- monitor
- health
1 change: 1 addition & 0 deletions conf/zapi/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ objects:
Status: status.yaml
Subsystem: subsystem.yaml
Lun: lun.yaml
Status_7mode: status_7.yaml
6 changes: 3 additions & 3 deletions grafana/dashboards/7mode/harvest_dashboard_cluster7.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
},
{
"exemplar": false,
"expr": "cluster_new_status{datacenter=\"$Datacenter\",cluster=\"$Cluster\"}",
"expr": "node_7mode_status{datacenter=\"$Datacenter\",cluster=\"$Cluster\",monitor=\"node-connect\"}",
"format": "table",
"hide": false,
"instant": true,
Expand Down Expand Up @@ -406,7 +406,7 @@
"calcs": [
"lastNotNull"
],
"fields": "/^status$/",
"fields": "/^health$/",
"values": false
},
"text": {},
Expand All @@ -418,7 +418,7 @@
"targets": [
{
"exemplar": false,
"expr": "cluster_new_status{datacenter=~\"$Datacenter\",cluster=\"$Cluster\"}",
"expr": "node_7mode_status{datacenter=\"$Datacenter\",cluster=\"$Cluster\", monitor=\"node-connect\"}",
"instant": true,
"interval": "",
"legendFormat": "",
Expand Down

0 comments on commit b1a40ef

Please sign in to comment.