Cleaning up Grafana Cruft
Grafana keeps raw queries in the json and it was bugging me. If the raw query isn't displayed, why save it? Why not strip it on export for external use? Also, my interfaces were embedded in the json. No security risk, but it bugged me. This is supposed to be templated for external use!
This commit is contained in:
parent
58513af7de
commit
2853b5c3eb
@ -73,7 +73,7 @@
|
|||||||
"gnetId": null,
|
"gnetId": null,
|
||||||
"graphTooltip": 0,
|
"graphTooltip": 0,
|
||||||
"id": null,
|
"id": null,
|
||||||
"iteration": 1614902557107,
|
"iteration": 1614909769550,
|
||||||
"links": [],
|
"links": [],
|
||||||
"panels": [
|
"panels": [
|
||||||
{
|
{
|
||||||
@ -762,7 +762,6 @@
|
|||||||
},
|
},
|
||||||
"yaxes": [
|
"yaxes": [
|
||||||
{
|
{
|
||||||
"$$hashKey": "object:4806",
|
|
||||||
"decimals": 1,
|
"decimals": 1,
|
||||||
"format": "none",
|
"format": "none",
|
||||||
"label": "",
|
"label": "",
|
||||||
@ -772,7 +771,6 @@
|
|||||||
"show": true
|
"show": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$$hashKey": "object:4807",
|
|
||||||
"format": "short",
|
"format": "short",
|
||||||
"label": null,
|
"label": null,
|
||||||
"logBase": 1,
|
"logBase": 1,
|
||||||
@ -2820,8 +2818,6 @@
|
|||||||
"measurement": "net",
|
"measurement": "net",
|
||||||
"orderByTime": "ASC",
|
"orderByTime": "ASC",
|
||||||
"policy": "default",
|
"policy": "default",
|
||||||
"query": "SELECT derivative(mean(\"bytes_recv\"), 1s) *-1 FROM \"autogen\".\"net\" WHERE (\"host\" = 'pfSense-home-master.home' AND \"interface\" = 'vtnet0') AND $timeFilter GROUP BY time($__interval) fill(null)",
|
|
||||||
"rawQuery": false,
|
|
||||||
"refId": "C",
|
"refId": "C",
|
||||||
"resultFormat": "time_series",
|
"resultFormat": "time_series",
|
||||||
"select": [
|
"select": [
|
||||||
@ -2921,7 +2917,6 @@
|
|||||||
},
|
},
|
||||||
"yaxes": [
|
"yaxes": [
|
||||||
{
|
{
|
||||||
"$$hashKey": "object:6721",
|
|
||||||
"decimals": 2,
|
"decimals": 2,
|
||||||
"format": "Bps",
|
"format": "Bps",
|
||||||
"label": "",
|
"label": "",
|
||||||
@ -2931,7 +2926,6 @@
|
|||||||
"show": true
|
"show": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$$hashKey": "object:6722",
|
|
||||||
"decimals": 2,
|
"decimals": 2,
|
||||||
"format": "short",
|
"format": "short",
|
||||||
"label": null,
|
"label": null,
|
||||||
@ -3027,8 +3021,6 @@
|
|||||||
"measurement": "net",
|
"measurement": "net",
|
||||||
"orderByTime": "ASC",
|
"orderByTime": "ASC",
|
||||||
"policy": "default",
|
"policy": "default",
|
||||||
"query": "SELECT derivative(mean(\"bytes_recv\"), 1s) *-1 FROM \"autogen\".\"net\" WHERE (\"host\" = 'pfSense-home-master.home' AND \"interface\" = 'vtnet0') AND $timeFilter GROUP BY time($__interval) fill(null)",
|
|
||||||
"rawQuery": false,
|
|
||||||
"refId": "C",
|
"refId": "C",
|
||||||
"resultFormat": "time_series",
|
"resultFormat": "time_series",
|
||||||
"select": [
|
"select": [
|
||||||
@ -3345,8 +3337,6 @@
|
|||||||
"measurement": "net",
|
"measurement": "net",
|
||||||
"orderByTime": "ASC",
|
"orderByTime": "ASC",
|
||||||
"policy": "default",
|
"policy": "default",
|
||||||
"query": "SELECT mean(\"packets_recv\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)",
|
|
||||||
"rawQuery": false,
|
|
||||||
"refId": "G",
|
"refId": "G",
|
||||||
"resultFormat": "time_series",
|
"resultFormat": "time_series",
|
||||||
"select": [
|
"select": [
|
||||||
@ -3527,7 +3517,6 @@
|
|||||||
},
|
},
|
||||||
"yaxes": [
|
"yaxes": [
|
||||||
{
|
{
|
||||||
"$$hashKey": "object:7707",
|
|
||||||
"decimals": 2,
|
"decimals": 2,
|
||||||
"format": "short",
|
"format": "short",
|
||||||
"label": null,
|
"label": null,
|
||||||
@ -3537,7 +3526,6 @@
|
|||||||
"show": true
|
"show": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$$hashKey": "object:7708",
|
|
||||||
"decimals": 2,
|
"decimals": 2,
|
||||||
"format": "short",
|
"format": "short",
|
||||||
"label": null,
|
"label": null,
|
||||||
@ -3946,7 +3934,6 @@
|
|||||||
},
|
},
|
||||||
"yaxes": [
|
"yaxes": [
|
||||||
{
|
{
|
||||||
"$$hashKey": "object:6856",
|
|
||||||
"decimals": 2,
|
"decimals": 2,
|
||||||
"format": "Bps",
|
"format": "Bps",
|
||||||
"label": "",
|
"label": "",
|
||||||
@ -3956,7 +3943,6 @@
|
|||||||
"show": true
|
"show": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$$hashKey": "object:6857",
|
|
||||||
"decimals": 2,
|
"decimals": 2,
|
||||||
"format": "short",
|
"format": "short",
|
||||||
"label": "",
|
"label": "",
|
||||||
@ -4385,8 +4371,6 @@
|
|||||||
"measurement": "net",
|
"measurement": "net",
|
||||||
"orderByTime": "ASC",
|
"orderByTime": "ASC",
|
||||||
"policy": "default",
|
"policy": "default",
|
||||||
"query": "SELECT mean(\"packets_recv\") FROM \"net\" WHERE (\"interface\" =~ /^$Interface$/ AND \"host\" =~ /^$Host$/) AND $timeFilter GROUP BY time($__interval) fill(null)",
|
|
||||||
"rawQuery": false,
|
|
||||||
"refId": "G",
|
"refId": "G",
|
||||||
"resultFormat": "time_series",
|
"resultFormat": "time_series",
|
||||||
"select": [
|
"select": [
|
||||||
@ -4486,7 +4470,6 @@
|
|||||||
},
|
},
|
||||||
"yaxes": [
|
"yaxes": [
|
||||||
{
|
{
|
||||||
"$$hashKey": "object:6174",
|
|
||||||
"decimals": 2,
|
"decimals": 2,
|
||||||
"format": "short",
|
"format": "short",
|
||||||
"label": null,
|
"label": null,
|
||||||
@ -4496,7 +4479,6 @@
|
|||||||
"show": true
|
"show": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$$hashKey": "object:6175",
|
|
||||||
"decimals": 2,
|
"decimals": 2,
|
||||||
"format": "short",
|
"format": "short",
|
||||||
"label": null,
|
"label": null,
|
||||||
@ -4749,5 +4731,5 @@
|
|||||||
"timezone": "",
|
"timezone": "",
|
||||||
"title": "pfSense System Dashboard",
|
"title": "pfSense System Dashboard",
|
||||||
"uid": "GflT1CsMz",
|
"uid": "GflT1CsMz",
|
||||||
"version": 138
|
"version": 1
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user