Commit 5302681a authored by MaksimSmile13's avatar MaksimSmile13

Add ddash and metrics for UPS

parent aabb58ca
{
"$metric": "UPS | AC Voltage",
"$type": "oid",
"oid": "1.3.6.1.4.1.35265.1.7.5.11.0",
"scale": "text(\"int\")"
}
{
"$metric": "UPS | Battery current",
"$type": "oid",
"oid": "1.3.6.1.4.1.35265.1.7.5.6.0",
"scale": "text(\"float\")"
}
{
"$metric": "UPS | Battery voltage",
"$type": "oid",
"oid": "1.3.6.1.4.1.35265.1.7.5.7.0",
"scale": "text(\"float\")"
}
{
"$metric": "UPS | Load current",
"$type": "oid",
"oid": "1.3.6.1.4.1.35265.1.7.5.9.0",
"scale": "text(\"float\")"
}
{
"$metric": "UPS | Battery discharge time",
"$type": "oid",
"oid": "1.3.6.1.4.1.35265.1.7.5.13.0",
"scale": "text(\"int\")"
}
{
"$metric": "UPS | Wasted battery capacity",
"$type": "oid",
"oid": "1.3.6.1.4.1.35265.1.7.5.12.0",
"scale": "text(\"float\")"
}
{
"title": "Radio | Status | Oper",
"aliasColors": {},
"bars": false,
"datasource": null,
"timeFrom": null,
"links": [],
"thresholds": [],
"spaceLength": 10,
"nullPointMode": "connected",
"renderer": "flot",
"linewidth": 2,
"steppedLine": false,
"id": "c406b161-14be-411b-8455-91c1c15545b5",
"fill": 1,
"grid": {
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
"span": 6,
"title": "UPS | AC Voltage",
"tooltip": {
"sort": 0,
"shared": true,
"value_type": "cumulative",
"msResolution": false
},
"id": "97bc1951-7466-43a8-b91d-22c470082d86",
"legend": {
"rightSide": false,
"avg": false,
"min": true,
"max": true,
......@@ -21,69 +27,58 @@
"values": true,
"alignAsTable": true,
"total": false,
"sortDesc": true
"sortDesc": true,
"decimals": 2
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"decimals": 0,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"span": 6,
"stack": false,
"steppedLine": false,
"description": "This object shows the operational status of the transmitter \n RFTxOperStatus (INTEGER) {other(1),\n txOff(2),\n txOn(3),\n txStandby(4)\n}",
"targets": [
{
"dateTimeColDataType": "ts",
"datetimeLoading": false,
"query": "SELECT $timeSeries as t, avg(av_voltage) `UPS | AC Voltage` FROM $table WHERE managed_object=$bi_id and $timeFilter GROUP BY t ORDER BY t",
"database": "noc",
"dateLoading": false,
"tableLoading": false,
"table": "ups",
"dateLoading": false,
"datetimeLoading": false,
"dateColDataType": "date",
"table": "interface",
"intervalFactor": 1,
"query": "SELECT \n t, \n groupArray((iface, \"Oper Status\")) AS groupArr \nFROM (\n SELECT $timeSeries as t, \n arrayStringConcat(path,'.') as iface, \n avg(radio_status_oper) as `Oper Status` \n FROM \n $table \n WHERE \n managed_object=$bi_id \n and $timeFilter \n and radio_status_oper != 0 \n GROUP BY arrayStringConcat(path,'.'), t ORDER BY t) \nGROUP BY t \nORDER BY t ASC",
"refId": "A",
"resultFormat": "time_series"
"dateTimeColDataType": "ts"
}
],
"timeFrom": null,
"timeShift": null,
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"type": "graph",
"x-axis": true,
"xaxis": {
"show": true
},
"y-axis": true,
"yaxes": [
{
"logBase": 1,
"format": "none",
"format": "volt",
"max": null,
"min": null,
"label": null,
"show": true,
"decimals": null
"decimals": 2
},
{
"logBase": 1,
"format": "short",
"max": null,
"max": "5",
"min": null,
"label": null,
"show": false,
"decimals": 0
"show": false
}
],
}
"seriesOverrides": [
{
"alias": "UPS | AC Voltage",
"color": "#bf1b00"
}
],
"percentage": false,
"type": "graph",
"dashes": false,
"x-axis": true,
"grid": {},
"dashLength": 10,
"stack": false,
"y-axis": true,
"timeShift": null,
"lines": true,
"points": false,
"datasource": null,
"pointradius": 5,
"decimals": 2
}
\ No newline at end of file
{
"bars": false,
"timeFrom": null,
"links": [],
"thresholds": [],
"spaceLength": 10,
"nullPointMode": "connected",
"renderer": "flot",
"linewidth": 2,
"steppedLine": false,
"id": "c406b161-14be-411b-8455-91c1c155e5b5",
"fill": 1,
"span": 6,
"title": "UPS | Battery current",
"tooltip": {
"sort": 0,
"shared": true,
"value_type": "cumulative",
"msResolution": false
},
"legend": {
"avg": false,
"min": true,
"max": true,
"show": true,
"current": true,
"values": true,
"alignAsTable": true,
"total": false,
"sortDesc": true,
"decimals": 2
},
"targets": [
{
"query": "SELECT $timeSeries as t, avg(battery_current) `UPS | Battery current` FROM $table WHERE managed_object=$bi_id and $timeFilter GROUP BY t ORDER BY t",
"database": "noc",
"tableLoading": false,
"table": "ups",
"dateLoading": false,
"datetimeLoading": false,
"dateColDataType": "date",
"dateTimeColDataType": "ts"
}
],
"yaxes": [
{
"logBase": 1,
"format": "volt",
"max": null,
"min": null,
"label": null,
"show": true,
"decimals": 2
},
{
"logBase": 1,
"format": "short",
"max": "5",
"min": null,
"label": null,
"show": false
}
],
"seriesOverrides": [
{
"alias": "UPS | Battery current",
"color": "#cca300"
}
],
"percentage": false,
"type": "graph",
"dashes": false,
"x-axis": true,
"grid": {},
"dashLength": 10,
"stack": false,
"y-axis": true,
"timeShift": null,
"lines": true,
"points": false,
"datasource": null,
"pointradius": 5,
"decimals": 2
}
\ No newline at end of file
{
"bars": false,
"timeFrom": null,
"links": [],
"thresholds": [],
"spaceLength": 10,
"nullPointMode": "connected",
"renderer": "flot",
"linewidth": 2,
"steppedLine": false,
"id": "c406b161-14be-411b-8455-11c1c155efb5",
"fill": 1,
"span": 6,
"title": "UPS | Battery discharge time",
"tooltip": {
"sort": 0,
"shared": true,
"value_type": "cumulative",
"msResolution": false
},
"legend": {
"avg": false,
"min": true,
"max": true,
"show": true,
"current": true,
"values": true,
"alignAsTable": true,
"total": false,
"sortDesc": true,
"decimals": 2
},
"targets": [
{
"query": "SELECT $timeSeries as t, avg(tdisch) `UPS | Battery discharge time` FROM $table WHERE managed_object=$bi_id and $timeFilter GROUP BY t ORDER BY t",
"database": "noc",
"tableLoading": false,
"table": "ups",
"dateLoading": false,
"datetimeLoading": false,
"dateColDataType": "date",
"dateTimeColDataType": "ts"
}
],
"yaxes": [
{
"logBase": 1,
"format": "m",
"max": null,
"min": null,
"label": null,
"show": true,
"decimals": 2
},
{
"logBase": 1,
"format": "short",
"max": "5",
"min": null,
"label": null,
"show": false
}
],
"seriesOverrides": [
{
"alias": "UPS | Battery discharge time",
"color": "#1f78c1"
}
],
"percentage": false,
"type": "graph",
"dashes": false,
"x-axis": true,
"grid": {},
"dashLength": 10,
"stack": false,
"y-axis": true,
"timeShift": null,
"lines": true,
"points": false,
"datasource": null,
"pointradius": 5,
"decimals": 2
}
\ No newline at end of file
{
"bars": false,
"timeFrom": null,
"links": [],
"thresholds": [],
"spaceLength": 10,
"nullPointMode": "connected",
"renderer": "flot",
"linewidth": 2,
"steppedLine": false,
"id": "c406b161-14be-411b-8455-11c1c255e5b5",
"fill": 1,
"span": 6,
"title": "UPS | Battery voltage",
"tooltip": {
"sort": 0,
"shared": true,
"value_type": "cumulative",
"msResolution": false
},
"legend": {
"avg": false,
"min": true,
"max": true,
"show": true,
"current": true,
"values": true,
"alignAsTable": true,
"total": false,
"sortDesc": true,
"decimals": 2
},
"targets": [
{
"query": "SELECT $timeSeries as t, avg(battery_voltage) `UPS | Battery voltage` FROM $table WHERE managed_object=$bi_id and $timeFilter GROUP BY t ORDER BY t",
"database": "noc",
"tableLoading": false,
"table": "ups",
"dateLoading": false,
"datetimeLoading": false,
"dateColDataType": "date",
"dateTimeColDataType": "ts"
}
],
"yaxes": [
{
"logBase": 1,
"format": "amp",
"max": null,
"min": null,
"label": null,
"show": true,
"decimals": 2
},
{
"logBase": 1,
"format": "short",
"max": "5",
"min": null,
"label": null,
"show": false
}
],
"seriesOverrides": [
{
"alias": "UPS | Battery voltage",
"color": "#e0752d"
}
],
"percentage": false,
"type": "graph",
"dashes": false,
"x-axis": true,
"grid": {},
"dashLength": 10,
"stack": false,
"y-axis": true,
"timeShift": null,
"lines": true,
"points": false,
"datasource": null,
"pointradius": 5,
"decimals": 2
}
\ No newline at end of file
{
"bars": false,
"timeFrom": null,
"links": [],
"thresholds": [],
"spaceLength": 10,
"nullPointMode": "connected",
"renderer": "flot",
"linewidth": 2,
"steppedLine": false,
"id": "c406b161-14be-411b-8455-11c1c155e5b5",
"fill": 1,
"span": 6,
"title": "UPS | Load current",
"tooltip": {
"sort": 0,
"shared": true,
"value_type": "cumulative",
"msResolution": false
},
"legend": {
"avg": false,
"min": true,
"max": true,
"show": true,
"current": true,
"values": true,
"alignAsTable": true,
"total": false,
"sortDesc": true,
"decimals": 2
},
"targets": [
{
"query": "SELECT $timeSeries as t, avg(load_current) `UPS | Load current` FROM $table WHERE managed_object=$bi_id and $timeFilter GROUP BY t ORDER BY t",
"database": "noc",
"tableLoading": false,
"table": "ups",
"dateLoading": false,
"datetimeLoading": false,
"dateColDataType": "date",
"dateTimeColDataType": "ts"
}
],
"yaxes": [
{
"logBase": 1,
"format": "amp",
"max": null,
"min": null,
"label": null,
"show": true,
"decimals": 2
},
{
"logBase": 1,
"format": "short",
"max": "5",
"min": null,
"label": null,
"show": false
}
],
"seriesOverrides": [
{
"alias": "UPS | Load current",
"color": "#e0752d"
}
],
"percentage": false,
"type": "graph",
"dashes": false,
"x-axis": true,
"grid": {},
"dashLength": 10,
"stack": false,
"y-axis": true,
"timeShift": null,
"lines": true,
"points": false,
"datasource": null,
"pointradius": 5,
"decimals": 2
}
\ No newline at end of file
{
"bars": false,
"timeFrom": null,
"links": [],
"thresholds": [],
"spaceLength": 10,
"nullPointMode": "connected",
"renderer": "flot",
"linewidth": 2,
"steppedLine": false,
"id": "c406b161-14be-411b-8455-91c1c1f545b5",
"fill": 1,
"span": 6,
"title": "UPS | Wasted battery capacity",
"tooltip": {
"sort": 0,
"shared": true,
"value_type": "cumulative",
"msResolution": false
},
"legend": {
"avg": false,
"min": true,
"max": true,
"show": true,
"current": true,
"values": true,
"alignAsTable": true,
"total": false,
"sortDesc": true,
"decimals": 2
},
"targets": [
{
"query": "SELECT $timeSeries as t, avg(wcap) `UPS | Wasted battery capacity` FROM $table WHERE managed_object=$bi_id and $timeFilter GROUP BY t ORDER BY t",
"database": "noc",
"tableLoading": false,
"table": "ups",
"dateLoading": false,
"datetimeLoading": false,
"dateColDataType": "date",
"dateTimeColDataType": "ts"
}
],
"yaxes": [
{
"logBase": 1,
"format": "volt",
"max": null,
"min": null,
"label": null,
"show": true,
"decimals": 2
},
{
"logBase": 1,
"format": "short",
"max": "5",
"min": null,
"label": null,
"show": false
}
],
"seriesOverrides": [
{
"alias": "UPS | Wasted battery capacity",
"color": "#cca300"
}
],
"percentage": false,
"type": "graph",
"dashes": false,
"x-axis": true,
"grid": {},
"dashLength": 10,
"stack": false,
"y-axis": true,
"timeShift": null,
"lines": true,
"points": false,
"datasource": null,
"pointradius": 5,
"decimals": 2
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment