CyberEntomology

Grafana/pfSense Monthly data usage panel

May 22nd, 2020
1,063
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.66 KB | None | 0 0
  1. {
  2.   "datasource": "InfluxDB - Jersey/telegraf",
  3.   "fieldConfig": {
  4.     "defaults": {
  5.       "custom": {},
  6.       "unit": "decbytes",
  7.       "thresholds": {
  8.         "mode": "absolute",
  9.         "steps": [
  10.           {
  11.             "color": "semi-dark-green",
  12.             "value": null
  13.           }
  14.         ]
  15.       },
  16.       "mappings": []
  17.     },
  18.     "overrides": []
  19.   },
  20.   "gridPos": {
  21.     "h": 6,
  22.     "w": 3,
  23.     "x": 11,
  24.     "y": 3
  25.   },
  26.   "id": 33,
  27.   "links": [],
  28.   "options": {
  29.     "reduceOptions": {
  30.       "values": false,
  31.       "calcs": [
  32.         "lastNotNull"
  33.       ]
  34.     },
  35.     "orientation": "horizontal",
  36.     "colorMode": "background",
  37.     "graphMode": "none",
  38.     "justifyMode": "auto"
  39.   },
  40.   "pluginVersion": "7.0.0",
  41.   "targets": [
  42.     {
  43.       "alias": "In",
  44.       "groupBy": [],
  45.       "measurement": "snmp",
  46.       "orderByTime": "ASC",
  47.       "policy": "default",
  48.       "query": "SELECT last(\"ifHCInOctets\") - first(\"ifHCInOctets\") AS \"in\" FROM \"snmp\" WHERE (\"hostname\" = 'ROTO.beyerfamily.us' AND \"ifName\" = 'bce0') AND $timeFilter\n\n",
  49.       "rawQuery": true,
  50.       "refId": "A",
  51.       "resultFormat": "time_series",
  52.       "select": [
  53.         [
  54.           {
  55.             "params": [
  56.               "ifHCInOctets"
  57.             ],
  58.             "type": "field"
  59.           },
  60.           {
  61.             "params": [],
  62.             "type": "first"
  63.           },
  64.           {
  65.             "params": [
  66.               "in"
  67.             ],
  68.             "type": "alias"
  69.           }
  70.         ],
  71.         [
  72.           {
  73.             "params": [
  74.               "ifHCInOctets"
  75.             ],
  76.             "type": "field"
  77.           },
  78.           {
  79.             "params": [],
  80.             "type": "last"
  81.           },
  82.           {
  83.             "params": [
  84.               "out"
  85.             ],
  86.             "type": "alias"
  87.           }
  88.         ]
  89.       ],
  90.       "tags": [
  91.         {
  92.           "key": "hostname",
  93.           "operator": "=",
  94.           "value": "ROTO.beyerfamily.us"
  95.         },
  96.         {
  97.           "condition": "AND",
  98.           "key": "ifName",
  99.           "operator": "=",
  100.           "value": "bce0"
  101.         }
  102.       ]
  103.     },
  104.     {
  105.       "alias": "Out",
  106.       "groupBy": [],
  107.       "measurement": "snmp",
  108.       "orderByTime": "ASC",
  109.       "policy": "default",
  110.       "query": "SELECT last(\"ifHCOutOctets\") - first(\"ifHCOutOctets\") AS \"out\" FROM \"snmp\" WHERE (\"hostname\" = 'ROTO.beyerfamily.us' AND \"ifName\" = 'bce0') AND $timeFilter\n",
  111.       "rawQuery": true,
  112.       "refId": "B",
  113.       "resultFormat": "time_series",
  114.       "select": [
  115.         [
  116.           {
  117.             "params": [
  118.               "ifHCInOctets"
  119.             ],
  120.             "type": "field"
  121.           },
  122.           {
  123.             "params": [],
  124.             "type": "first"
  125.           },
  126.           {
  127.             "params": [
  128.               "in"
  129.             ],
  130.             "type": "alias"
  131.           }
  132.         ],
  133.         [
  134.           {
  135.             "params": [
  136.               "ifHCInOctets"
  137.             ],
  138.             "type": "field"
  139.           },
  140.           {
  141.             "params": [],
  142.             "type": "last"
  143.           },
  144.           {
  145.             "params": [
  146.               "out"
  147.             ],
  148.             "type": "alias"
  149.           }
  150.         ]
  151.       ],
  152.       "tags": [
  153.         {
  154.           "key": "hostname",
  155.           "operator": "=",
  156.           "value": "ROTO.beyerfamily.us"
  157.         },
  158.         {
  159.           "condition": "AND",
  160.           "key": "ifName",
  161.           "operator": "=",
  162.           "value": "bce0"
  163.         }
  164.       ]
  165.     }
  166.   ],
  167.   "timeFrom": "30d",
  168.   "type": "stat",
  169.   "cacheTimeout": null,
  170.   "timeShift": null,
  171.   "title": ""
  172. }
Add Comment
Please, Sign In to add comment