Skip to content

Commit

Permalink
feat: handling review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Hardikl committed Oct 13, 2023
1 parent 53fccfb commit b9b1496
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
6 changes: 4 additions & 2 deletions conf/rest/9.6.0/fcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ object: fcp

counters:
- ^^uuid
- ^enabled => enabled
- ^fabric.connected => fabric_connected
- ^fabric.name => fabric_name
- ^fabric.port_address => fabric_port_address
- ^fabric.switch_port => fabric_switch_port
- ^name => port_name
- ^name => port
- ^node.name => node
- ^physical_protocol
- ^speed.configured => speed_configured
Expand All @@ -22,8 +23,9 @@ counters:
export_options:
instance_keys:
- node
- port_name
- port
instance_labels:
- enabled
- fabric_connected
- fabric_name
- fabric_port_address
Expand Down
38 changes: 20 additions & 18 deletions grafana/dashboards/cmode/network.json
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,7 @@
"targets": [
{
"exemplar": false,
"expr": "fcp_labels{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",port_name=~\"$FCP\"}",
"expr": "fcp_labels{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",port=~\"$FCP\"}",
"format": "table",
"hide": false,
"instant": true,
Expand All @@ -1721,7 +1721,7 @@
},
{
"exemplar": false,
"expr": "fcp_max_speed{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",port_name=~\"$FCP\"}",
"expr": "fcp_max_speed{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",port=~\"$FCP\"}",
"format": "table",
"hide": false,
"instant": true,
Expand All @@ -1731,7 +1731,7 @@
},
{
"exemplar": false,
"expr": "fcp_fabric_connected_speed{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",port_name=~\"$FCP\"}",
"expr": "fcp_fabric_connected_speed{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\",port=~\"$FCP\"}",
"format": "table",
"hide": false,
"instant": true,
Expand All @@ -1754,13 +1754,14 @@
"fabric_switch_port",
"node",
"physical_protocol",
"port_name",
"port",
"speed_configured",
"state",
"supported_protocols",
"Value #B",
"Value #A",
"fabric_port_address"
"fabric_port_address",
"enabled"
]
}
}
Expand All @@ -1776,28 +1777,29 @@
"indexByName": {
"Value #A": 12,
"Value #B": 11,
"Value #C": 10,
"fabric_connected": 2,
"fabric_name": 3,
"fabric_port_address": 4,
"fabric_switch_port": 5,
"enabled": 2,
"fabric_connected": 3,
"fabric_name": 4,
"fabric_port_address": 5,
"fabric_switch_port": 6,
"node": 1,
"physical_protocol": 6,
"port_name": 0,
"speed_configured": 7,
"state": 8,
"supported_protocols": 9
"physical_protocol": 7,
"port": 0,
"speed_configured": 8,
"state": 9,
"supported_protocols": 10
},
"renameByName": {
"Value #A": "Connected Speed",
"Value #B": "Max Speed",
"enabled": "Enabled",
"fabric_connected": "Fabric Connected",
"fabric_name": "Fabric Name",
"fabric_port_address": "Fabric Port",
"fabric_switch_port": "Fabric Switch Port",
"node": "Node",
"physical_protocol": "Physical Protocol",
"port_name": "Port Name",
"port": "Port Name",
"speed_configured": "Speed Configured",
"state": "State",
"supported_protocols": "Supported Protocols"
Expand Down Expand Up @@ -3443,7 +3445,7 @@
"allValue": null,
"current": {},
"datasource": "${DS_PROMETHEUS}",
"definition": "label_values(fcp_labels{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\"}, port_name)",
"definition": "label_values(fcp_labels{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\"}, port)",
"description": null,
"error": null,
"hide": 0,
Expand All @@ -3453,7 +3455,7 @@
"name": "FCP",
"options": [],
"query": {
"query": "label_values(fcp_labels{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\"}, port_name)",
"query": "label_values(fcp_labels{datacenter=~\"$Datacenter\",cluster=~\"$Cluster\",node=~\"$Node\"}, port)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
Expand Down

0 comments on commit b9b1496

Please sign in to comment.