CyberEntomology

Grafana/pfSense Daily data usage graph panel

May 22nd, 2020
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.85 KB | None | 0 0
  1. {
  2.   "aliasColors": {},
  3.   "bars": true,
  4.   "dashLength": 10,
  5.   "datasource": "InfluxDB - Jersey/telegraf",
  6.   "fieldConfig": {
  7.     "defaults": {
  8.       "custom": {}
  9.     },
  10.     "overrides": []
  11.   },
  12.   "fill": 1,
  13.   "gridPos": {
  14.     "h": 7,
  15.     "w": 10,
  16.     "x": 14,
  17.     "y": 14
  18.   },
  19.   "id": 26,
  20.   "legend": {
  21.     "avg": false,
  22.     "current": false,
  23.     "max": false,
  24.     "min": false,
  25.     "show": true,
  26.     "total": false,
  27.     "values": false
  28.   },
  29.   "linewidth": 1,
  30.   "links": [],
  31.   "nullPointMode": "null",
  32.   "options": {
  33.     "dataLinks": []
  34.   },
  35.   "pluginVersion": "6.7.3",
  36.   "pointradius": 2,
  37.   "renderer": "flot",
  38.   "seriesOverrides": [],
  39.   "spaceLength": 10,
  40.   "targets": [
  41.     {
  42.       "alias": "$tag_ifDescr $col",
  43.       "groupBy": [
  44.         {
  45.           "params": [
  46.             "1d"
  47.           ],
  48.           "type": "time"
  49.         },
  50.         {
  51.           "params": [
  52.             "ifDescr"
  53.           ],
  54.           "type": "tag"
  55.         },
  56.         {
  57.           "params": [
  58.             "null"
  59.           ],
  60.           "type": "fill"
  61.         }
  62.       ],
  63.       "measurement": "snmp",
  64.       "orderByTime": "ASC",
  65.       "policy": "default",
  66.       "query": "SELECT non_negative_derivative(last(\"ifHCInOctets\"), 1d) AS \"in\", non_negative_derivative(last(\"ifHCOutOctets\"), 1d) *-1 AS \"out\" FROM \"snmp\" WHERE (\"hostname\" = 'ROTO' AND \"ifName\" = 'bce0') AND $timeFilter GROUP BY time(1d), \"ifDescr\" fill(null)",
  67.       "rawQuery": true,
  68.       "refId": "A",
  69.       "resultFormat": "time_series",
  70.       "select": [
  71.         [
  72.           {
  73.             "params": [
  74.               "ifHCInOctets"
  75.             ],
  76.             "type": "field"
  77.           },
  78.           {
  79.             "params": [],
  80.             "type": "last"
  81.           },
  82.           {
  83.             "params": [
  84.               "1d"
  85.             ],
  86.             "type": "non_negative_derivative"
  87.           },
  88.           {
  89.             "params": [
  90.               "in"
  91.             ],
  92.             "type": "alias"
  93.           }
  94.         ],
  95.         [
  96.           {
  97.             "params": [
  98.               "ifHCOutOctets"
  99.             ],
  100.             "type": "field"
  101.           },
  102.           {
  103.             "params": [],
  104.             "type": "last"
  105.           },
  106.           {
  107.             "params": [
  108.               "1d"
  109.             ],
  110.             "type": "non_negative_derivative"
  111.           },
  112.           {
  113.             "params": [
  114.               "*-1"
  115.             ],
  116.             "type": "math"
  117.           },
  118.           {
  119.             "params": [
  120.               "out"
  121.             ],
  122.             "type": "alias"
  123.           }
  124.         ]
  125.       ],
  126.       "tags": [
  127.         {
  128.           "key": "hostname",
  129.           "operator": "=",
  130.           "value": "ROTO"
  131.         },
  132.         {
  133.           "condition": "AND",
  134.           "key": "ifName",
  135.           "operator": "=",
  136.           "value": "bce0"
  137.         }
  138.       ]
  139.     }
  140.   ],
  141.   "thresholds": [],
  142.   "timeFrom": "30d",
  143.   "timeRegions": [],
  144.   "title": "Daily WAN usage",
  145.   "tooltip": {
  146.     "shared": true,
  147.     "sort": 0,
  148.     "value_type": "individual"
  149.   },
  150.   "type": "graph",
  151.   "xaxis": {
  152.     "buckets": null,
  153.     "mode": "time",
  154.     "name": null,
  155.     "show": true,
  156.     "values": []
  157.   },
  158.   "yaxes": [
  159.     {
  160.       "$$hashKey": "object:3058",
  161.       "format": "decbytes",
  162.       "label": null,
  163.       "logBase": 1,
  164.       "max": null,
  165.       "min": null,
  166.       "show": true
  167.     },
  168.     {
  169.       "$$hashKey": "object:3059",
  170.       "format": "short",
  171.       "label": null,
  172.       "logBase": 1,
  173.       "max": null,
  174.       "min": null,
  175.       "show": false
  176.     }
  177.   ],
  178.   "yaxis": {
  179.     "align": false,
  180.     "alignLevel": null
  181.   },
  182.   "cacheTimeout": null,
  183.   "dashes": false,
  184.   "fillGradient": 0,
  185.   "hiddenSeries": false,
  186.   "lines": false,
  187.   "percentage": false,
  188.   "points": false,
  189.   "stack": false,
  190.   "steppedLine": false,
  191.   "timeShift": null
  192. }
Add Comment
Please, Sign In to add comment