-
Notifications
You must be signed in to change notification settings - Fork 0
/
gcounter.tt
37 lines (37 loc) · 1.08 KB
/
gcounter.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//// Generic Counter
{
"title": "Row",
"collapse": false,
"editable": true,
"height": "250px",
"panels": [ {
"title": "Counter [%target%] in [%hostname%] (Generic Counter)",
"id": [%serial%],
"datasource": "[%GRAFANADATASOURCE%]",
"isNew": true,
"editable": true,
"tooltip": { "shared": true, "value_type": "individual" },
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [ "short" ],
"grid": { "leftLogBase": 1, "leftMax": null, "leftMin": 0 },
"gridPos": { "w": 12, "h": 6, "x": 0, "y": 0 },
"span": 12,
"legend": {
"show": true,
"values": true, "avg": true, "max": true, "min": true, "current": false, "total": false,
"rightSide": true, "alignAsTable": true,
"hideEmpty": true, "hideZero": false
},
"targets": [ {
"refId": "0001",
"dsType": "influxdb",
"resultFormat": "time_series",
"alias": "$col",
"query": "SELECT last(\"[%fieldkey%]\")-first(\"[%fieldkey%]\") AS \"differencial\" FROM \"[%measurement%]\" GROUP BY time(60m) fill(0)",
"rawQuery": true
} ],
"nullPointMode": "connected"
} ]
}