-
Notifications
You must be signed in to change notification settings - Fork 0
/
port.tt
132 lines (132 loc) · 5.49 KB
/
port.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
//// Network Connection
{
"title": "Row",
"collapse": false,
"editable": true,
"height": "250px",
"panels": [ {
"title": "Network Connections \"[%target%]\" in [%hostname%]",
"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": -1 },
"gridPos": { "w": 6, "h": 6, "x": 0, "y": 0 },
"span": 6,
"legend": {
"show": true,
"values": true, "avg": true, "max": true, "min": true, "current": false, "total": false,
"rightSide": true, "alignAsTable": true, "sideWidth": 300,
"hideEmpty": true, "hideZero": false
},
"targets": [ {
"refId": "0001",
"dsType": "influxdb",
"resultFormat": "time_series",
"alias": "$col",
"groupBy": [ { "type": "time", "params": [ "$__interval" ] } ],
"measurement": "[%measurement%]",
"tags": [],
"select": [
[ { "type": "field", "params": [ "port[[%target%]]-conns.warn_upper" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "warn_upper" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-conns.warn_lower" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "warn_lower" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-conns.crit_upper" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "crit_upper" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-conns.crit_lower" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "crit_lower" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-conns" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "connections" ] } ],
[ { "type": "field", "params": [ "longtermavg-of-port[[%target%]]-conns.warn_upper" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "longtermavg-warn_upper" ] } ],
[ { "type": "field", "params": [ "longtermavg-of-port[[%target%]]-conns.warn_lower" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "longtermavg-warn_lower" ] } ],
[ { "type": "field", "params": [ "longtermavg-of-port[[%target%]]-conns.crit_upper" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "longtermavg-crit_upper" ] } ],
[ { "type": "field", "params": [ "longtermavg-of-port[[%target%]]-conns.crit_lower" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "longtermavg-crit_lower" ] } ],
[ { "type": "field", "params": [ "longtermavg-of-port[[%target%]]-conns" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "longtermavg-connections" ] } ]
]
} ],
"nullPointMode": "connected"
}, {
"title": "Network Connection \"[%target%]\" Queue Size in [%hostname%]",
"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": 6, "h": 6, "x": 6, "y": 0 },
"span": 6,
"legend": {
"show": true,
"values": true, "avg": true, "max": true, "min": true, "current": false, "total": false,
"rightSide": true, "alignAsTable": true, "sideWidth": 300,
"hideEmpty": true, "hideZero": false
},
"targets": [ {
"refId": "0001",
"dsType": "influxdb",
"resultFormat": "time_series",
"alias": "$col",
"groupBy": [ { "type": "time", "params": [ "$__interval" ] } ],
"measurement": "[%measurement%]",
"tags": [],
"select": [
[ { "type": "field", "params": [ "port[[%target%]]-recvq.warn_upper" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "recv_warn_upper" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-recvq.warn_lower" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "recv_warn_lower" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-recvq.crit_upper" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "recv_crit_upper" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-recvq.crit_lower" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "recv_crit_lower" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-recvq" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "recv_queue" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-sendq.warn_upper" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "send_warn_upper" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-sendq.warn_lower" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "send_warn_lower" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-sendq.crit_upper" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "send_crit_upper" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-sendq.crit_lower" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "send_crit_lower" ] } ],
[ { "type": "field", "params": [ "port[[%target%]]-sendq" ] },
{ "type": "mean", "params": [] },
{ "type": "alias", "params": [ "send_queue" ] } ]
]
} ],
"nullPointMode": "connected"
} ]
}