Grafana dashboard: OpenNMS Generic UPS Stats

* Works with any UPS which provides metrics on standard OIDs
* Change UPS variable in "Templating" menu to grep your UPS devices

{
  "__inputs": [
    {
      "name": "DS_OPENNMS_PERFORMANCE",
      "label": "OpenNMS Performance",
      "description": "",
      "type": "datasource",
      "pluginId": "opennms-helm-performance-datasource",
      "pluginName": "OpenNMS Performance"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "5.2.1"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": "5.0.0"
    },
    {
      "type": "datasource",
      "id": "opennms-helm-performance-datasource",
      "name": "OpenNMS Performance",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": "5.0.0"
    },
    {
      "type": "panel",
      "id": "vonage-status-panel",
      "name": "Status Panel",
      "version": "1.0.6"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "limit": 100,
        "name": "Annotations & Alerts",
        "showIn": 0,
        "type": "dashboard"
      }
    ]
  },
  "description": "",
  "editable": true,
  "gnetId": 5776,
  "graphTooltip": 1,
  "id": null,
  "iteration": 1534184006754,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 24,
      "panels": [],
      "repeat": "UPS",
      "title": "$UPS",
      "type": "row"
    },
    {
      "clusterName": "",
      "colorMode": "Panel",
      "colors": {
        "crit": "rgba(245, 54, 54, 0.9)",
        "disable": "rgba(128, 128, 128, 0.9)",
        "ok": "rgba(50, 128, 45, 0.9)",
        "warn": "rgba(237, 129, 40, 0.9)"
      },
      "cornerRadius": 0,
      "datasource": "${DS_OPENNMS_PERFORMANCE}",
      "displayName": "",
      "flipCard": false,
      "flipTime": 5,
      "gridPos": {
        "h": 7,
        "w": 2,
        "x": 0,
        "y": 1
      },
      "hideTimeOverride": true,
      "id": 12,
      "isGrayOnNoData": true,
      "isHideAlertsOnDisable": false,
      "isIgnoreOKColors": false,
      "links": [],
      "targets": [
        {
          "aggregation": "AVERAGE",
          "alias": "C",
          "attribute": "upsBatteryTemp",
          "crit": 30,
          "decimals": 2,
          "display": false,
          "displayAliasType": "Always",
          "displayType": "Regular",
          "displayValueWithAlias": "When Alias Displayed",
          "label": "C",
          "nodeId": "IT:rmusv001",
          "refId": "A",
          "resourceId": "nodeSnmp[]",
          "type": "attribute",
          "units": "celsius",
          "valueHandler": "Text Only",
          "warn": 25
        },
        {
          "aggregation": "Avg",
          "alias": "F",
          "decimals": 2,
          "displayAliasType": "Always",
          "displayType": "Regular",
          "displayValueWithAlias": "When Alias Displayed",
          "expression": "((C * 9)/5)+ 32",
          "hide": false,
          "label": "F",
          "refId": "B",
          "type": "expression",
          "units": "none",
          "valueHandler": "Text Only"
        },
        {
          "displayType": "Regular",
          "filter": {
            "backend": "Java",
            "canonicalName": "org.opennms.netmgt.measurements.filters.impl.Chomp",
            "description": "Strips leading and trailing rows that contain nothing but NaNs/null values.",
            "name": "Chomp",
            "parameter": [
              {
                "default": "true",
                "description": "When set, leading and trailing rows containing NaNs will be removed",
                "displayName": "Strip",
                "key": "stripNaNs",
                "required": false,
                "type": "boolean"
              },
              {
                "default": "0",
                "description": "Timestamp in milliseconds. Any rows before this time will be removed.",
                "displayName": "Cutoff",
                "key": "cutoffDate",
                "required": false,
                "type": "double"
              }
            ]
          },
          "filterParameters": {
            "cutoffDate": "120000",
            "stripNaNs": "true"
          },
          "refId": "C",
          "type": "filter",
          "valueHandler": "Regular"
        }
      ],
      "timeFrom": "5m",
      "timeShift": null,
      "title": "Temp",
      "type": "vonage-status-panel"
    },
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "rgba(50, 172, 45, 0.97)",
        "#f2c96d",
        "rgba(245, 54, 54, 0.9)"
      ],
      "datasource": "${DS_OPENNMS_PERFORMANCE}",
      "decimals": 1,
      "format": "percent",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 7,
        "w": 2,
        "x": 2,
        "y": 1
      },
      "id": 2,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "minSpan": 6,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "repeat": null,
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": true,
        "lineColor": "rgb(31, 120, 193)",
        "show": true
      },
      "tableColumn": "",
      "targets": [
        {
          "aggregation": "LAST",
          "attribute": "upsOutputLoad1",
          "hide": false,
          "label": "",
          "nodeId": "$UPS",
          "refId": "A",
          "resourceId": "nodeSnmp[]",
          "type": "attribute"
        },
        {
          "filter": {
            "backend": "Java",
            "canonicalName": "org.opennms.netmgt.measurements.filters.impl.Chomp",
            "description": "Strips leading and trailing rows that contain nothing but NaNs/null values.",
            "name": "Chomp",
            "parameter": [
              {
                "default": "true",
                "description": "When set, leading and trailing rows containing NaNs will be removed",
                "displayName": "Strip",
                "key": "stripNaNs",
                "required": false,
                "type": "boolean"
              },
              {
                "default": "0",
                "description": "Timestamp in milliseconds. Any rows before this time will be removed.",
                "displayName": "Cutoff",
                "key": "cutoffDate",
                "required": false,
                "type": "double"
              }
            ]
          },
          "filterParameters": {
            "cutoffDate": "60000",
            "stripNaNs": "true"
          },
          "refId": "B",
          "type": "filter"
        }
      ],
      "thresholds": "48,50",
      "title": "Load",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "rgba(245, 54, 54, 0.9)",
        "rgba(237, 129, 40, 0.89)",
        "rgba(23, 212, 16, 0.97)"
      ],
      "datasource": "${DS_OPENNMS_PERFORMANCE}",
      "decimals": null,
      "format": "h",
      "gauge": {
        "maxValue": 5400,
        "minValue": 0,
        "show": false,
        "thresholdLabels": true,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 4,
        "y": 1
      },
      "hideTimeOverride": false,
      "id": 1,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "minSpan": 6,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "repeat": null,
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": true,
        "lineColor": "rgb(31, 120, 193)",
        "show": true
      },
      "tableColumn": "",
      "targets": [
        {
          "aggregation": "AVERAGE",
          "attribute": "upsEstMinsRemain",
          "hide": true,
          "label": "raw",
          "nodeId": "$UPS",
          "refId": "A",
          "resourceId": "nodeSnmp[]",
          "subattribute": "",
          "type": "attribute"
        },
        {
          "expression": "raw / 60",
          "label": "Time",
          "refId": "B",
          "type": "expression"
        },
        {
          "filter": {
            "backend": "Java",
            "canonicalName": "org.opennms.netmgt.measurements.filters.impl.Chomp",
            "description": "Strips leading and trailing rows that contain nothing but NaNs/null values.",
            "name": "Chomp",
            "parameter": [
              {
                "default": "true",
                "description": "When set, leading and trailing rows containing NaNs will be removed",
                "displayName": "Strip",
                "key": "stripNaNs",
                "required": false,
                "type": "boolean"
              },
              {
                "default": "0",
                "description": "Timestamp in milliseconds. Any rows before this time will be removed.",
                "displayName": "Cutoff",
                "key": "cutoffDate",
                "required": false,
                "type": "double"
              }
            ]
          },
          "filterParameters": {
            "cutoffDate": "60000",
            "stripNaNs": "true"
          },
          "refId": "C",
          "type": "filter"
        }
      ],
      "thresholds": "1800,3600",
      "timeFrom": null,
      "timeShift": null,
      "title": "Time Remaining",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "rgba(50, 172, 45, 0.97)",
        "rgba(237, 129, 40, 0.89)",
        "rgba(245, 54, 54, 0.9)"
      ],
      "datasource": "${DS_OPENNMS_PERFORMANCE}",
      "decimals": 1,
      "format": "percent",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 8,
        "y": 1
      },
      "id": 16,
      "interval": null,
      "links": [],
      "mappingType": 2,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "minSpan": 6,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": true,
        "lineColor": "rgb(31, 120, 193)",
        "show": true
      },
      "tableColumn": "",
      "targets": [
        {
          "attribute": "upsEstChargeRemain",
          "hide": false,
          "label": "",
          "nodeId": "$UPS",
          "refId": "A",
          "resourceId": "nodeSnmp[]",
          "type": "attribute"
        }
      ],
      "thresholds": "50,75",
      "title": "Estimated Charge Remaining",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_OPENNMS_PERFORMANCE}",
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 12,
        "y": 1
      },
      "id": 4,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": false,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "minSpan": 6,
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "repeat": null,
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "attribute": "upsInputVoltage1",
          "label": "Input",
          "nodeId": "$UPS",
          "refId": "A",
          "resourceId": "nodeSnmp[]",
          "type": "attribute"
        },
        {
          "attribute": "upsOutputVoltage1",
          "label": "Output",
          "nodeId": "$UPS",
          "refId": "B",
          "resourceId": "nodeSnmp[]",
          "type": "attribute"
        },
        {
          "filter": {
            "backend": "Java",
            "canonicalName": "org.opennms.netmgt.measurements.filters.impl.Chomp",
            "description": "Strips leading and trailing rows that contain nothing but NaNs/null values.",
            "name": "Chomp",
            "parameter": [
              {
                "default": "true",
                "description": "When set, leading and trailing rows containing NaNs will be removed",
                "displayName": "Strip",
                "key": "stripNaNs",
                "required": false,
                "type": "boolean"
              },
              {
                "default": "0",
                "description": "Timestamp in milliseconds. Any rows before this time will be removed.",
                "displayName": "Cutoff",
                "key": "cutoffDate",
                "required": false,
                "type": "double"
              }
            ]
          },
          "filterParameters": {
            "cutoffDate": "60000",
            "stripNaNs": "true"
          },
          "refId": "C",
          "type": "filter"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Voltage",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": [
          "current"
        ]
      },
      "yaxes": [
        {
          "format": "volt",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "amp",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_OPENNMS_PERFORMANCE}",
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 16,
        "y": 1
      },
      "id": 13,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "minSpan": 6,
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "attribute": "upsOutputPower1",
          "label": "Max",
          "nodeId": "$UPS",
          "refId": "A",
          "resourceId": "nodeSnmp[]",
          "type": "attribute"
        },
        {
          "attribute": "upsBatteryCurrent",
          "label": "On Battery",
          "nodeId": "$UPS",
          "refId": "B",
          "resourceId": "nodeSnmp[]",
          "type": "attribute"
        },
        {
          "filter": {
            "backend": "Java",
            "canonicalName": "org.opennms.netmgt.measurements.filters.impl.Chomp",
            "description": "Strips leading and trailing rows that contain nothing but NaNs/null values.",
            "name": "Chomp",
            "parameter": [
              {
                "default": "true",
                "description": "When set, leading and trailing rows containing NaNs will be removed",
                "displayName": "Strip",
                "key": "stripNaNs",
                "required": false,
                "type": "boolean"
              },
              {
                "default": "0",
                "description": "Timestamp in milliseconds. Any rows before this time will be removed.",
                "displayName": "Cutoff",
                "key": "cutoffDate",
                "required": false,
                "type": "double"
              }
            ]
          },
          "filterParameters": {
            "cutoffDate": "60000",
            "stripNaNs": "true"
          },
          "refId": "C",
          "type": "filter"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Output Power",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": [
          "current"
        ]
      },
      "yaxes": [
        {
          "format": "watt",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "amp",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_OPENNMS_PERFORMANCE}",
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 20,
        "y": 1
      },
      "id": 15,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "minSpan": 6,
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "attribute": "upsOutputCurrent1",
          "hide": true,
          "label": "value",
          "nodeId": "$UPS",
          "refId": "A",
          "resourceId": "nodeSnmp[]",
          "type": "attribute"
        },
        {
          "expression": "value / 10",
          "label": "Ampere",
          "refId": "B",
          "type": "expression"
        },
        {
          "filter": {
            "backend": "Java",
            "canonicalName": "org.opennms.netmgt.measurements.filters.impl.Chomp",
            "description": "Strips leading and trailing rows that contain nothing but NaNs/null values.",
            "name": "Chomp",
            "parameter": [
              {
                "default": "true",
                "description": "When set, leading and trailing rows containing NaNs will be removed",
                "displayName": "Strip",
                "key": "stripNaNs",
                "required": false,
                "type": "boolean"
              },
              {
                "default": "0",
                "description": "Timestamp in milliseconds. Any rows before this time will be removed.",
                "displayName": "Cutoff",
                "key": "cutoffDate",
                "required": false,
                "type": "double"
              }
            ]
          },
          "filterParameters": {
            "cutoffDate": "60000",
            "stripNaNs": "true"
          },
          "refId": "C",
          "type": "filter"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Output",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": [
          "current"
        ]
      },
      "yaxes": [
        {
          "format": "amp",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "amp",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": "30s",
  "schemaVersion": 16,
  "style": "dark",
  "tags": [
    "OpenNMS"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_OPENNMS_PERFORMANCE}",
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "UPS",
        "options": [],
        "query": "nodeFilter(catincUSV)",
        "refresh": 1,
        "regex": "",
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-24h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "OpenNMS Generic UPS Stats",
  "uid": "000000066",
  "version": 17
}