Fixed values in pfBlocker - DNS Chart

Set total to use locale formatting
Added 2 decimal spaces to the percent
This commit is contained in:
Victor Robellini 2020-04-11 15:20:21 -04:00
parent 40a3abcd1c
commit de5b45ff9b

View File

@ -77,7 +77,7 @@
"gnetId": null, "gnetId": null,
"graphTooltip": 0, "graphTooltip": 0,
"id": null, "id": null,
"iteration": 1586218911223, "iteration": 1586560615790,
"links": [], "links": [],
"panels": [ "panels": [
{ {
@ -1268,9 +1268,9 @@
"circleMaxSize": 30, "circleMaxSize": 30,
"circleMinSize": 2, "circleMinSize": 2,
"colors": [ "colors": [
"rgba(245, 54, 54, 0.9)", "#FF9830",
"rgba(237, 129, 40, 0.89)", "#FF9830",
"rgba(50, 172, 45, 0.97)" "#C4162A"
], ],
"datasource": "$dataSource", "datasource": "$dataSource",
"decimals": 0, "decimals": 0,
@ -1284,15 +1284,15 @@
}, },
"hideEmpty": false, "hideEmpty": false,
"hideZero": false, "hideZero": false,
"id": 34, "id": 207,
"initialZoom": 1, "initialZoom": 1,
"locationData": "countries", "locationData": "countries",
"mapCenter": "(0°, 0°)", "mapCenter": "(0°, 0°)",
"mapCenterLatitude": 0, "mapCenterLatitude": 0,
"mapCenterLongitude": 0, "mapCenterLongitude": 0,
"maxDataPoints": 1, "maxDataPoints": 1,
"mouseWheelZoom": false, "mouseWheelZoom": true,
"showLegend": true, "showLegend": false,
"stickyLabels": false, "stickyLabels": false,
"tableQueryOptions": { "tableQueryOptions": {
"geohashField": "geohash", "geohashField": "geohash",
@ -1313,32 +1313,39 @@
}, },
{ {
"params": [ "params": [
"null" "GeoIP"
], ],
"type": "fill" "type": "tag"
} }
], ],
"measurement": "ip_block_log",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "SELECT count(\"action\") FROM \"ip_block_log\" WHERE $timeFilter GROUP BY \"GeoIP\"", "query": "SELECT count(\"action\") FROM \"ip_block_log\" WHERE $timeFilter GROUP BY \"GeoIP\"",
"rawQuery": true, "rawQuery": false,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
"select": [ "select": [
[ [
{ {
"params": [ "params": [
"value" "action"
], ],
"type": "field" "type": "field"
}, },
{ {
"params": [], "params": [],
"type": "mean" "type": "count"
} }
] ]
], ],
"tags": [] "tags": [
{
"key": "host",
"operator": "=~",
"value": "/^$Host$/"
}
]
} }
], ],
"thresholds": "1,5", "thresholds": "1,5",
@ -1471,8 +1478,9 @@
"threshold": 0 "threshold": 0
}, },
"datasource": "${DS_INFLUXDB}", "datasource": "${DS_INFLUXDB}",
"decimals": null,
"fontSize": "80%", "fontSize": "80%",
"format": "short", "format": "locale",
"gridPos": { "gridPos": {
"h": 9, "h": 9,
"w": 8, "w": 8,
@ -1483,6 +1491,7 @@
"interval": null, "interval": null,
"legend": { "legend": {
"percentage": true, "percentage": true,
"percentageDecimals": 2,
"show": true, "show": true,
"sideWidth": null, "sideWidth": null,
"sort": "total", "sort": "total",
@ -3335,7 +3344,7 @@
] ]
}, },
"time": { "time": {
"from": "now-3h", "from": "now-24h",
"to": "now" "to": "now"
}, },
"timepicker": { "timepicker": {
@ -3358,5 +3367,5 @@
"variables": { "variables": {
"list": [] "list": []
}, },
"version": 29 "version": 39
} }