Update example dashboards for v1.2

This commit is contained in:
Mark Nellemann 2021-03-25 20:48:21 +01:00
parent c324e24014
commit 00e24b8abb
5 changed files with 1150 additions and 885 deletions

View file

@ -12,18 +12,21 @@ Metrics includes:
## Installation and Setup
### HMC Setup Instructions
### Power HMC Setup Instructions
- Login to your HMC
- Navigate to *Users and Security*
- Create a new read-only **hmci** user, which will be used to connect to the REST API.
- Click *Manage User Profiles and Access*, edit the newly created hmci user and click *User Properties*:
- Enable *Allow remote access via the web*
- Set *Session timeout in minutes* to **0**
- Navigate to *HMC Mangement* and *Console Settings*
- Set *Session timeout minutes* to **120**
- Set *Verify timeout minutes* to **15**
- Set *Idle timeout minutes* to **15**
- Set *Minimum time in days between password changes* to **0**
- Navigate to *HMC Management* and *Console Settings*
- Click *Change Performance Monitoring Settings*:
- Enable *Performance Monitoring Data Collection for Managed Servers*: **All On**
- Set *Performance Data Storage* to **1** day or more
- Set *Performance Data Storage* to **1** day or preferable more
### InfluxDB and Grafana Setup Instructions
@ -37,39 +40,17 @@ Install InfluxDB on an *LPAR* or other server, which is network accessible by th
- Ensure you have **correct date/time** and NTPd running to keep it accurate!
- The only requirement for **hmci** is the Java runtime, version 8 (or later)
- Install **HMCi** from [downloads](https://bitbucket.org/mnellemann/hmci/downloads/) (rpm, deb or jar) or build from source
- Copy the *doc/hmci.toml* configuration example into */etc/hmci.toml* and edit the configuration to suit your environment. The location of the configuration file can be changed with a flag when running hmci.
- Run the *bin/hmci* program in a shell, as a @reboot cron task or setup a proper service :)
- Copy the *doc/hmci.toml* configuration example into */etc/hmci.toml* and edit the configuration to suit your environment. The location of the configuration file can be changed with the *--conf* option.
- Run the *bin/hmci* program in a shell, as a @reboot cron task or setup a proper service :) There is a systemd service example in the *doc/* folder.
- When started, *hmci* will try to create the InfluxDB database named hmci, if not found.
- Configure Grafana to communicate with your InfluxDB and import dashboards from the *doc/* folder into Grafana.
## Grafana Screenshots
Below are screenshots of the provided Grafana dashboards (found in the **doc/** folder), which can be used as a starting point.
- [hmci-resources.png](https://bitbucket.org/mnellemann/hmci/downloads/hmci-resources.png)
- [hmci-energy.png](https://bitbucket.org/mnellemann/hmci/downloads/hmci-energy.png)
- [hmci-vois.png](https://bitbucket.org/mnellemann/hmci/downloads/hmci-vios.png)
- [hmci-lpars](https://bitbucket.org/mnellemann/hmci/downloads/hmci-lpars.png)
## Known problems
### Naming collision
You can't have partitions (or Virtual I/O Servers) on different Systems with the same name, as these cannot be distinguished when metrics are
written to InfluxDB (which uses the name as key).
### Renaming partitions
If you rename a partition, the metrics in InfluxDB will still be available by the old name, and new metrics will be
available by the new name of the partition. There is no easy way to migrate the old data, but you can delete it easily:
DELETE WHERE partition = 'lpar-name';
## Notes
### Compatibility with nextract Plus
From version 1.2 *HMCi* is made compatible with the similar [nextract Plus](https://www.ibm.com/support/pages/nextract-plus-hmc-rest-api-performance-statistics) tool from Nigel Griffiths. This means you can use the excellent Grafana [dashboards](https://grafana.com/grafana/dashboards/13819) made by Nigel with *HMCi*.
### Start InfluxDB and Grafana at boot on RedHat 7+
systemctl enable influxdb
@ -88,6 +69,29 @@ Examples for changing the default InfluxDB retention policy for the hmci databas
ALTER RETENTION POLICY "autogen" ON "hmci" DURATION 156w
ALTER RETENTION POLICY "autogen" ON "hmci" DURATION 90d
## Grafana Screenshots
Below are screenshots of the provided Grafana dashboards (found in the **doc/** folder), which can be used as a starting point.
- [hmci-resources.png](https://bitbucket.org/mnellemann/hmci/downloads/hmci-resources.png)
- [hmci-energy.png](https://bitbucket.org/mnellemann/hmci/downloads/hmci-energy.png)
- [hmci-vois.png](https://bitbucket.org/mnellemann/hmci/downloads/hmci-vios.png)
- [hmci-lpars](https://bitbucket.org/mnellemann/hmci/downloads/hmci-lpars.png)
## Known problems
### Naming collision
You can't have partitions (or Virtual I/O Servers) on different Systems with the same name, as these cannot be distinguished when metrics are
written to InfluxDB (which uses the name as key).
### Renaming partitions
If you rename a partition, the metrics in InfluxDB will still be available by the old name, and new metrics will be available by the new name of the partition. There is no easy way to migrate the old data, but you can delete it easily:
DELETE WHERE partition = 'lpar-name';
## Development Information

View file

@ -22,7 +22,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "7.3.1"
"version": "7.4.2"
},
{
"type": "panel",
@ -61,7 +61,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1610631800176,
"iteration": 1616701412999,
"links": [],
"panels": [
{
@ -70,6 +70,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {},
@ -104,7 +105,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.1",
"pluginVersion": "7.4.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -114,7 +115,7 @@
"steppedLine": false,
"targets": [
{
"alias": "$tag_system",
"alias": "$tag_servername",
"groupBy": [
{
"params": [
@ -124,7 +125,7 @@
},
{
"params": [
"system"
"servername"
],
"type": "tag"
},
@ -135,7 +136,7 @@
"type": "fill"
}
],
"measurement": "SystemEnergyPower",
"measurement": "server_energy_power",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
@ -144,7 +145,7 @@
[
{
"params": [
"value"
"powerReading"
],
"type": "field"
},
@ -156,9 +157,9 @@
],
"tags": [
{
"key": "system",
"key": "servername",
"operator": "=~",
"value": "/^$ManagedSystem$/"
"value": "/^$ServerName$/"
}
]
}
@ -167,7 +168,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Power Usage",
"title": "Power Consumption",
"tooltip": {
"shared": true,
"sort": 0,
@ -183,6 +184,7 @@
},
"yaxes": [
{
"$$hashKey": "object:315",
"format": "watt",
"label": null,
"logBase": 1,
@ -191,6 +193,7 @@
"show": true
},
{
"$$hashKey": "object:316",
"format": "short",
"label": null,
"logBase": 1,
@ -250,12 +253,13 @@
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "7.3.1",
"pluginVersion": "7.4.2",
"targets": [
{
"alias": "$tag_system",
"alias": "$tag_servername",
"groupBy": [
{
"params": [
@ -265,7 +269,7 @@
},
{
"params": [
"system"
"servername"
],
"type": "tag"
},
@ -276,7 +280,7 @@
"type": "fill"
}
],
"measurement": "SystemEnergyPower",
"measurement": "server_energy_power",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
@ -285,7 +289,7 @@
[
{
"params": [
"value"
"powerReading"
],
"type": "field"
},
@ -297,16 +301,16 @@
],
"tags": [
{
"key": "system",
"key": "servername",
"operator": "=~",
"value": "/^$ManagedSystem$/"
"value": "/^$ServerName$/"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Power Usage",
"title": "Power Consumption",
"type": "stat"
},
{
@ -320,12 +324,13 @@
},
"id": 9,
"panels": [],
"repeat": "ManagedSystem",
"title": "Temperatures",
"repeat": "ServerName",
"title": "$ServerName Thermal",
"type": "row"
},
{
"datasource": "${DS_HMCI}",
"description": "Inlet air temperature.",
"fieldConfig": {
"defaults": {
"color": {
@ -374,12 +379,13 @@
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "7.3.1",
"pluginVersion": "7.4.2",
"targets": [
{
"alias": "$tag_system - $tag_name",
"alias": "$tag_servername - $tag_name",
"groupBy": [
{
"params": [
@ -389,13 +395,7 @@
},
{
"params": [
"system"
],
"type": "tag"
},
{
"params": [
"name"
"servername"
],
"type": "tag"
},
@ -406,7 +406,7 @@
"type": "fill"
}
],
"measurement": "SystemEnergyThermal",
"measurement": "server_energy_thermal",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
@ -415,7 +415,7 @@
[
{
"params": [
"value"
"inletTemperature_1"
],
"type": "field"
},
@ -427,22 +427,16 @@
],
"tags": [
{
"key": "name",
"operator": "=",
"value": "inletTemperature_1"
},
{
"condition": "AND",
"key": "system",
"key": "servername",
"operator": "=~",
"value": "/^$ManagedSystem$/"
"value": "/^$ServerName$/"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "$ManagedSystem - Inlet",
"title": "$ServerName - Inlet",
"type": "stat"
},
{
@ -451,23 +445,14 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {},
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
"steps": []
},
"unit": "celsius"
},
@ -501,7 +486,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.1",
"pluginVersion": "7.4.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -511,7 +496,7 @@
"steppedLine": false,
"targets": [
{
"alias": "$tag_name",
"alias": "$col",
"groupBy": [
{
"params": [
@ -525,12 +510,6 @@
],
"type": "tag"
},
{
"params": [
"name"
],
"type": "tag"
},
{
"params": [
"linear"
@ -538,36 +517,92 @@
"type": "fill"
}
],
"measurement": "SystemEnergyThermal",
"measurement": "server_energy_thermal",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"cpuTemperature*\") FROM \"server_energy_thermal\" WHERE (\"servername\" =~ /^$ServerName$/) AND $timeFilter GROUP BY time($__interval), \"system\", \"servername\" fill(linear)",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
"cpuTemperature_1"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"CPU-1"
],
"type": "alias"
}
],
[
{
"params": [
"cpuTemperature_2"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"CPU-2"
],
"type": "alias"
}
],
[
{
"params": [
"cpuTemperature_3"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"CPU-3"
],
"type": "alias"
}
],
[
{
"params": [
"cpuTemperature_4"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"CPU-4"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "name",
"key": "servername",
"operator": "=~",
"value": "/cpuTemperature_\\d+/"
},
{
"condition": "AND",
"key": "system",
"operator": "=~",
"value": "/^$ManagedSystem$/"
"value": "/^$ServerName$/"
}
]
}
@ -576,7 +611,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "$ManagedSystem - CPU",
"title": "$ServerName - CPU Temperature",
"tooltip": {
"shared": true,
"sort": 2,
@ -618,7 +653,7 @@
}
],
"refresh": "30s",
"schemaVersion": 26,
"schemaVersion": 27,
"style": "dark",
"tags": [
"POWER"
@ -629,15 +664,16 @@
"allValue": null,
"current": {},
"datasource": "${DS_HMCI}",
"definition": "SHOW TAG VALUES FROM \"SystemProcessor\" WITH KEY = \"system\"",
"definition": "SHOW TAG VALUES FROM \"server_processor\" WITH KEY = \"servername\" WHERE time > now() - 24h",
"description": null,
"error": null,
"hide": 0,
"includeAll": false,
"label": null,
"multi": true,
"name": "ManagedSystem",
"name": "ServerName",
"options": [],
"query": "SHOW TAG VALUES FROM \"SystemProcessor\" WITH KEY = \"system\"",
"query": "SHOW TAG VALUES FROM \"server_processor\" WITH KEY = \"servername\" WHERE time > now() - 24h",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
@ -672,5 +708,5 @@
"timezone": "",
"title": "IBM Power - HMC Managed Systems - Energy",
"uid": "oHcrgD1Mk",
"version": 10
"version": 18
}

View file

@ -20,7 +20,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "7.3.1"
"version": "7.4.2"
},
{
"type": "panel",
@ -54,7 +54,7 @@
"gnetId": 1510,
"graphTooltip": 0,
"id": null,
"iteration": 1610609134341,
"iteration": 1616701430705,
"links": [],
"panels": [
{
@ -107,7 +107,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.1",
"pluginVersion": "7.4.2",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -118,7 +118,7 @@
"style": {},
"targets": [
{
"alias": "$tag_partition $tag_name",
"alias": "$tag_servername $tag_lparname",
"dsType": "influxdb",
"groupBy": [
{
@ -129,13 +129,13 @@
},
{
"params": [
"name"
"lparname"
],
"type": "tag"
},
{
"params": [
"partition"
"servername"
],
"type": "tag"
},
@ -147,7 +147,7 @@
}
],
"hide": false,
"measurement": "PartitionProcessor",
"measurement": "lpar_processor",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
@ -156,7 +156,7 @@
[
{
"params": [
"value"
"utilizedProcUnits"
],
"type": "field"
},
@ -168,21 +168,15 @@
],
"tags": [
{
"key": "name",
"operator": "=",
"value": "utilizedProcUnits"
"key": "servername",
"operator": "=~",
"value": "/^$ServerName$/"
},
{
"condition": "AND",
"key": "system",
"key": "lparname",
"operator": "=~",
"value": "/^$ManagedSystem$/"
},
{
"condition": "AND",
"key": "partition",
"operator": "=~",
"value": "/^$Partition$/"
"value": "/^$LparName$/"
}
]
}
@ -281,7 +275,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.1",
"pluginVersion": "7.4.2",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -292,7 +286,7 @@
"style": {},
"targets": [
{
"alias": "$tag_partition - VLAN $tag_vlanId: $tag_name",
"alias": "$tag_lparname - VLAN $tag_vlanId",
"dsType": "influxdb",
"groupBy": [
{
@ -303,7 +297,7 @@
},
{
"params": [
"name"
"lparname"
],
"type": "tag"
},
@ -313,12 +307,6 @@
],
"type": "tag"
},
{
"params": [
"partition"
],
"type": "tag"
},
{
"params": [
"null"
@ -327,7 +315,7 @@
}
],
"hide": false,
"measurement": "PartitionVirtualEthernetAdapters",
"measurement": "lpar_network_virtual",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
@ -336,7 +324,7 @@
[
{
"params": [
"value"
"transferredBytes"
],
"type": "field"
},
@ -348,21 +336,15 @@
],
"tags": [
{
"key": "partition",
"key": "lparname",
"operator": "=~",
"value": "/^$Partition$/"
"value": "/^$LparName$/"
},
{
"condition": "AND",
"key": "name",
"operator": "!~",
"value": "/Physical/"
},
{
"condition": "AND",
"key": "system",
"key": "servername",
"operator": "=~",
"value": "/^$ManagedSystem$/"
"value": "/^$ServerName$/"
}
]
}
@ -422,8 +404,13 @@
"error": false,
"fieldConfig": {
"defaults": {
"color": {},
"custom": {},
"links": []
"thresholds": {
"mode": "absolute",
"steps": []
},
"unit": "Bps"
},
"overrides": []
},
@ -460,7 +447,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.1",
"pluginVersion": "7.4.2",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -471,7 +458,7 @@
"style": {},
"targets": [
{
"alias": "$tag_partition $tag_wwpn : $tag_name",
"alias": "$tag_lparname writeBytes",
"dsType": "influxdb",
"groupBy": [
{
@ -482,42 +469,24 @@
},
{
"params": [
"wwpn"
"lparname"
],
"type": "tag"
},
{
"params": [
"partition"
],
"type": "tag"
},
{
"params": [
"name"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"measurement": "PartitionVirtualFiberChannelAdapters",
"measurement": "lpar_storage_virtual",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"value\") FROM \"PartitionVirtualFiberChannelAdapters\" WHERE (\"system\" =~ /^$ManagedSystem$/ AND \"name\" != 'transmittedBytes' AND \"partition\" =~ /^$Partition$/) AND $timeFilter GROUP BY time($interval), \"wwpn\", \"partition\", \"name\" fill(null)",
"rawQuery": false,
"query": "SELECT mean(\"writeBytes\") FROM \"lpar_storage_virtual\" WHERE (\"servername\" =~ /^$ServerName$/ AND \"lparname\" =~ /^$LparName$/) AND $timeFilter GROUP BY time($interval), \"lparname\"",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
"writeBytes"
],
"type": "field"
},
@ -529,21 +498,74 @@
],
"tags": [
{
"key": "system",
"key": "servername",
"operator": "=~",
"value": "/^$ManagedSystem$/"
"value": "/^$ServerName$/"
},
{
"condition": "AND",
"key": "name",
"operator": "!=",
"value": "transmittedBytes"
"key": "lparname",
"operator": "=~",
"value": "/^$LparName$/"
}
]
},
{
"alias": "$tag_lparname readBytes",
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"lparname"
],
"type": "tag"
}
],
"hide": false,
"measurement": "lpar_storage_virtual",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"value\") FROM \"PartitionVirtualFiberChannelAdapters\" WHERE (\"system\" =~ /^$ManagedSystem$/ AND \"name\" != 'transmittedBytes' AND \"partition\" =~ /^$Partition$/) AND $timeFilter GROUP BY time($interval), \"wwpn\", \"partition\", \"name\" fill(null)",
"rawQuery": false,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"readBytes"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"*-1"
],
"type": "math"
}
]
],
"tags": [
{
"key": "servername",
"operator": "=~",
"value": "/^$ServerName$/"
},
{
"condition": "AND",
"key": "partition",
"key": "lparname",
"operator": "=~",
"value": "/^$Partition$/"
"value": "/^$LparName$/"
}
]
}
@ -637,12 +659,13 @@
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
"showThresholdMarkers": true,
"text": {}
},
"pluginVersion": "7.3.1",
"pluginVersion": "7.4.2",
"targets": [
{
"alias": "$tag_partition",
"alias": "$tag_lparname",
"dsType": "influxdb",
"groupBy": [
{
@ -653,7 +676,7 @@
},
{
"params": [
"partition"
"lparname"
],
"type": "tag"
},
@ -665,7 +688,7 @@
}
],
"hide": false,
"measurement": "PartitionAffinityScore",
"measurement": "lpar_details",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
@ -674,7 +697,7 @@
[
{
"params": [
"value"
"affinityScore"
],
"type": "field"
},
@ -686,21 +709,15 @@
],
"tags": [
{
"key": "system",
"key": "servername",
"operator": "=~",
"value": "/^$ManagedSystem$/"
"value": "/^$ServerName$/"
},
{
"condition": "AND",
"key": "partition",
"key": "lparname",
"operator": "=~",
"value": "/^$Partition$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=",
"value": "affinityScore"
"value": "/^$LparName$/"
}
]
}
@ -709,10 +726,232 @@
"timeShift": null,
"title": "NUMA Affinity Score",
"type": "gauge"
},
{
"aliasColors": {},
"bars": false,
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"description": "",
"editable": true,
"error": false,
"fieldConfig": {
"defaults": {
"color": {},
"custom": {},
"thresholds": {
"mode": "absolute",
"steps": []
},
"unit": "Bps"
},
"overrides": []
},
"fill": 1,
"fillGradient": 1,
"grid": {},
"gridPos": {
"h": 10,
"w": 12,
"x": 12,
"y": 34
},
"hiddenSeries": false,
"id": 12,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"hideEmpty": true,
"hideZero": true,
"max": true,
"min": true,
"show": false,
"sort": "avg",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"mode": "",
"nullPointMode": "connected",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.4.2",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"style": {},
"targets": [
{
"alias": "$tag_lparname writeBytes",
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"lparname"
],
"type": "tag"
}
],
"hide": false,
"measurement": "lpar_storage_generic",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"writeBytes\") FROM \"lpar_storage_virtual\" WHERE (\"servername\" =~ /^$ServerName$/ AND \"lparname\" =~ /^$LparName$/) AND $timeFilter GROUP BY time($interval), \"lparname\"",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"writeBytes"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "servername",
"operator": "=~",
"value": "/^$ServerName$/"
},
{
"condition": "AND",
"key": "lparname",
"operator": "=~",
"value": "/^$LparName$/"
}
]
},
{
"alias": "$tag_lparname readBytes",
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"lparname"
],
"type": "tag"
}
],
"hide": false,
"measurement": "lpar_storage_generic",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"value\") FROM \"PartitionVirtualFiberChannelAdapters\" WHERE (\"system\" =~ /^$ManagedSystem$/ AND \"name\" != 'transmittedBytes' AND \"partition\" =~ /^$Partition$/) AND $timeFilter GROUP BY time($interval), \"wwpn\", \"partition\", \"name\" fill(null)",
"rawQuery": false,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"readBytes"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"*-1"
],
"type": "math"
}
]
],
"tags": [
{
"key": "servername",
"operator": "=~",
"value": "/^$ServerName$/"
},
{
"condition": "AND",
"key": "lparname",
"operator": "=~",
"value": "/^$LparName$/"
}
]
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Virtual Generic Adapters",
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:3776",
"format": "Bps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:3777",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "30s",
"schemaVersion": 26,
"schemaVersion": 27,
"style": "dark",
"tags": [
"Power"
@ -724,16 +963,17 @@
"allValue": null,
"current": {},
"datasource": "${DS_HMCI}",
"definition": "SHOW TAG VALUES FROM \"SystemProcessor\" WITH KEY = \"system\" WHERE time > now() - 24h",
"definition": "SHOW TAG VALUES FROM \"server_processor\" WITH KEY = \"servername\" WHERE time > now() - 24h",
"description": null,
"error": null,
"hide": 0,
"includeAll": true,
"label": "System",
"label": "Server Name",
"multi": true,
"multiFormat": "regex values",
"name": "ManagedSystem",
"name": "ServerName",
"options": [],
"query": "SHOW TAG VALUES FROM \"SystemProcessor\" WITH KEY = \"system\" WHERE time > now() - 24h",
"query": "SHOW TAG VALUES FROM \"server_processor\" WITH KEY = \"servername\" WHERE time > now() - 24h",
"refresh": 1,
"refresh_on_load": false,
"regex": "",
@ -750,16 +990,17 @@
"allValue": null,
"current": {},
"datasource": "${DS_HMCI}",
"definition": "SHOW TAG VALUES FROM \"PartitionProcessor\" WITH KEY = \"partition\" WHERE system =~ /$ManagedSystem/",
"definition": "SHOW TAG VALUES FROM \"lpar_processor\" WITH KEY = \"lparname\" WHERE servername =~ /$ServerName/",
"description": null,
"error": null,
"hide": 0,
"includeAll": true,
"label": "Logical Partition",
"multi": true,
"multiFormat": "regex values",
"name": "Partition",
"name": "LparName",
"options": [],
"query": "SHOW TAG VALUES FROM \"PartitionProcessor\" WITH KEY = \"partition\" WHERE system =~ /$ManagedSystem/",
"query": "SHOW TAG VALUES FROM \"lpar_processor\" WITH KEY = \"lparname\" WHERE servername =~ /$ServerName/",
"refresh": 1,
"refresh_on_load": false,
"regex": "",
@ -806,5 +1047,5 @@
"timezone": "browser",
"title": "IBM Power - HMC Managed Systems - Logical Partitions",
"uid": "Xl7oHESGz",
"version": 6
"version": 8
}

View file

@ -20,7 +20,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "7.3.1"
"version": "7.4.2"
},
{
"type": "panel",
@ -54,11 +54,12 @@
"gnetId": 1465,
"graphTooltip": 0,
"id": null,
"iteration": 1610631883782,
"iteration": 1616701495725,
"links": [],
"panels": [
{
"datasource": "${DS_HMCI}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {},
@ -98,9 +99,10 @@
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
"showThresholdMarkers": true,
"text": {}
},
"pluginVersion": "7.3.1",
"pluginVersion": "7.4.2",
"targets": [
{
"alias": "$tag_vios",
@ -114,13 +116,7 @@
},
{
"params": [
"vios"
],
"type": "tag"
},
{
"params": [
"name"
"viosname"
],
"type": "tag"
},
@ -132,7 +128,7 @@
}
],
"hide": false,
"measurement": "SystemViosMemory",
"measurement": "vios_memory",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
@ -141,7 +137,7 @@
[
{
"params": [
"value"
"utilizedPct"
],
"type": "field"
},
@ -153,28 +149,22 @@
],
"tags": [
{
"key": "system",
"key": "servername",
"operator": "=~",
"value": "/^$ManagedSystem$/"
"value": "/^$ServerName$/"
},
{
"condition": "AND",
"key": "vios",
"key": "viosname",
"operator": "=~",
"value": "/^$Vios$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=",
"value": "utilizedMemPct"
"value": "/^$ViosName$/"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "$ManagedSystem - $Vios - Memory",
"title": "$ServerName - $ViosName Memory",
"type": "gauge"
},
{
@ -184,6 +174,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"description": "",
"editable": true,
"error": false,
"fieldConfig": {
@ -224,7 +215,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.1",
"pluginVersion": "7.4.2",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -235,7 +226,7 @@
"style": {},
"targets": [
{
"alias": "$tag_vios: $tag_name",
"alias": "$tag_viosname",
"dsType": "influxdb",
"groupBy": [
{
@ -246,7 +237,7 @@
},
{
"params": [
"vios"
"viosname"
],
"type": "tag"
},
@ -264,7 +255,7 @@
}
],
"hide": false,
"measurement": "SystemViosProcessor",
"measurement": "vios_processor",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
@ -273,7 +264,7 @@
[
{
"params": [
"value"
"utilizedProcUnits"
],
"type": "field"
},
@ -285,21 +276,15 @@
],
"tags": [
{
"key": "system",
"key": "servername",
"operator": "=~",
"value": "/^$ManagedSystem$/"
"value": "/^$ServerName$/"
},
{
"condition": "AND",
"key": "vios",
"key": "viosname",
"operator": "=~",
"value": "/^$Vios$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=~",
"value": "/utilized/"
"value": "/^$ViosName$/"
}
]
}
@ -308,7 +293,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "$ManagedSystem - $Vios - Processors",
"title": "$ServerName - $ViosName - Processors",
"tooltip": {
"msResolution": false,
"shared": true,
@ -355,6 +340,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"description": "",
"editable": true,
"error": false,
"fieldConfig": {
@ -395,7 +381,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.1",
"pluginVersion": "7.4.2",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -406,7 +392,7 @@
"style": {},
"targets": [
{
"alias": "$tag_vios: $tag_id ($tag_device)",
"alias": "$tag_viosname: $tag_id ($tag_location)",
"dsType": "influxdb",
"groupBy": [
{
@ -417,13 +403,13 @@
},
{
"params": [
"vios"
"viosname"
],
"type": "tag"
},
{
"params": [
"device"
"location"
],
"type": "tag"
},
@ -441,7 +427,7 @@
}
],
"hide": false,
"measurement": "SystemFiberChannelAdapters",
"measurement": "vios_storage_FC",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
@ -450,7 +436,7 @@
[
{
"params": [
"value"
"transmittedBytes"
],
"type": "field"
},
@ -462,21 +448,15 @@
],
"tags": [
{
"key": "system",
"key": "servername",
"operator": "=~",
"value": "/^$ManagedSystem$/"
"value": "/^$ServerName$/"
},
{
"condition": "AND",
"key": "vios",
"key": "viosname",
"operator": "=~",
"value": "/^$Vios$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=",
"value": "transmittedBytes"
"value": "/^$ViosName$/"
}
]
}
@ -485,7 +465,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "$ManagedSystem - $Vios - Fiber Channel Adapters",
"title": "$ServerName - $ViosName - Fiber Channel Adapters",
"tooltip": {
"msResolution": false,
"shared": true,
@ -546,8 +526,8 @@
"fillGradient": 1,
"grid": {},
"gridPos": {
"h": 10,
"w": 12,
"h": 11,
"w": 24,
"x": 0,
"y": 20
},
@ -573,7 +553,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.1",
"pluginVersion": "7.4.2",
"pointradius": 5,
"points": false,
"renderer": "flot",
@ -584,7 +564,7 @@
"style": {},
"targets": [
{
"alias": "$tag_vios: $tag_name",
"alias": "$tag_viosname - shared",
"dsType": "influxdb",
"groupBy": [
{
@ -595,13 +575,7 @@
},
{
"params": [
"vios"
],
"type": "tag"
},
{
"params": [
"name"
"viosname"
],
"type": "tag"
},
@ -613,7 +587,7 @@
}
],
"hide": false,
"measurement": "SystemVirtualEthernetAdapters",
"measurement": "vios_network_shared",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
@ -622,7 +596,7 @@
[
{
"params": [
"value"
"transferredBytes"
],
"type": "field"
},
@ -634,128 +608,20 @@
],
"tags": [
{
"key": "system",
"key": "servername",
"operator": "=~",
"value": "/^$ManagedSystem$/"
"value": "/^$ServerName$/"
},
{
"condition": "AND",
"key": "vios",
"key": "viosname",
"operator": "=~",
"value": "/^$Vios$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=~",
"value": "/.*Bytes/"
"value": "/^$ViosName$/"
}
]
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "$ManagedSystem - $Vios - Virtual Ethernet Adapters",
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:2622",
"format": "Bps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:2623",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"editable": true,
"error": false,
"fieldConfig": {
"defaults": {
"custom": {},
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 2,
"grid": {},
"gridPos": {
"h": 10,
"w": 12,
"x": 12,
"y": 20
},
"hiddenSeries": false,
"id": 11,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": true,
"min": true,
"rightSide": false,
"show": false,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [],
"mode": "",
"nullPointMode": "connected",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.1",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"style": {},
"targets": [
{
"alias": "$tag_vios: $tag_name",
"alias": "$tag_viosname - generic",
"dsType": "influxdb",
"groupBy": [
{
@ -766,13 +632,7 @@
},
{
"params": [
"vios"
],
"type": "tag"
},
{
"params": [
"name"
"viosname"
],
"type": "tag"
},
@ -784,16 +644,16 @@
}
],
"hide": false,
"measurement": "SystemSharedAdapters",
"measurement": "vios_network_generic",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
"transferredBytes"
],
"type": "field"
},
@ -805,21 +665,72 @@
],
"tags": [
{
"key": "system",
"key": "servername",
"operator": "=~",
"value": "/^$ManagedSystem$/"
"value": "/^$ServerName$/"
},
{
"condition": "AND",
"key": "vios",
"key": "viosname",
"operator": "=~",
"value": "/^$Vios$/"
"value": "/^$ViosName$/"
}
]
},
{
"alias": "$tag_viosname - virtual",
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"viosname"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"measurement": "vios_network_virtual",
"orderByTime": "ASC",
"policy": "default",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"transferredBytes"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "servername",
"operator": "=~",
"value": "/^$ServerName$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=",
"value": "transferredBytes"
"key": "viosname",
"operator": "=~",
"value": "/^$ViosName$/"
}
]
}
@ -828,7 +739,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "$ManagedSystem - $Vios - Shared Adapters",
"title": "$ServerName - $ViosName - Network",
"tooltip": {
"msResolution": false,
"shared": true,
@ -870,7 +781,7 @@
}
],
"refresh": "30s",
"schemaVersion": 26,
"schemaVersion": 27,
"style": "dark",
"tags": [
"Power",
@ -884,16 +795,17 @@
"allValue": null,
"current": {},
"datasource": "${DS_HMCI}",
"definition": "SHOW TAG VALUES FROM \"SystemProcessor\" WITH KEY = \"system\" WHERE time > now() - 24h",
"definition": "SHOW TAG VALUES FROM \"server_processor\" WITH KEY = \"servername\" WHERE time > now() - 24h",
"description": null,
"error": null,
"hide": 0,
"includeAll": false,
"label": "System",
"label": "Server",
"multi": true,
"multiFormat": "regex values",
"name": "ManagedSystem",
"name": "ServerName",
"options": [],
"query": "SHOW TAG VALUES FROM \"SystemProcessor\" WITH KEY = \"system\" WHERE time > now() - 24h",
"query": "SHOW TAG VALUES FROM \"server_processor\" WITH KEY = \"servername\" WHERE time > now() - 24h",
"refresh": 1,
"refresh_on_load": false,
"regex": "",
@ -910,16 +822,17 @@
"allValue": null,
"current": {},
"datasource": "${DS_HMCI}",
"definition": "SHOW TAG VALUES FROM \"SystemFiberChannelAdapters\" WITH KEY = \"vios\" WHERE system =~ /$ManagedSystem/",
"definition": "SHOW TAG VALUES FROM \"vios_details\" WITH KEY = \"viosname\" WHERE servername =~ /$ServerName/ AND time > now() - 24h",
"description": null,
"error": null,
"hide": 0,
"includeAll": true,
"label": "Virtual I/O Server",
"multi": true,
"multiFormat": "regex values",
"name": "Vios",
"name": "ViosName",
"options": [],
"query": "SHOW TAG VALUES FROM \"SystemFiberChannelAdapters\" WITH KEY = \"vios\" WHERE system =~ /$ManagedSystem/",
"query": "SHOW TAG VALUES FROM \"vios_details\" WITH KEY = \"viosname\" WHERE servername =~ /$ServerName/ AND time > now() - 24h",
"refresh": 1,
"refresh_on_load": false,
"regex": "",
@ -966,5 +879,5 @@
"timezone": "browser",
"title": "IBM Power - HMC Managed Systems - Virtual I/O Servers",
"uid": "DDNEv5vGz",
"version": 10
"version": 11
}