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

fix: consuming node status from diagnosis-config-get-iter zapi for 7mode #499

Merged
merged 2 commits into from
Sep 9, 2021
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
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