@@ -11,7 +11,7 @@ const REQUEST_SIZE_DESCRIPTION = `The request length (including request line, he
11
11
12
12
export function getNginxRequestLatencyPanel ( ingress : string , namespace : string ) {
13
13
return PanelBuilders . timeseries ( )
14
- . setTitle ( 'Request Latency P95 [5m ]' )
14
+ . setTitle ( 'Request Latency P95 [1m ]' )
15
15
. setDescription ( REQUEST_LATENCY_DESCRIPTION )
16
16
. setData (
17
17
new SceneQueryRunner ( {
@@ -31,7 +31,7 @@ export function getNginxRequestLatencyPanel(ingress: string, namespace: string)
31
31
cluster="$cluster",
32
32
ingress="${ ingress } ",
33
33
exported_namespace="${ namespace } ",
34
- }[5m ]
34
+ }[1m ]
35
35
)
36
36
) by (host, path, le)
37
37
)
@@ -48,7 +48,7 @@ export function getNginxRequestLatencyPanel(ingress: string, namespace: string)
48
48
49
49
export function getNginxResponseLatencyPanel ( ingress : string , namespace : string ) {
50
50
return PanelBuilders . timeseries ( )
51
- . setTitle ( 'Response Latency P95 [5m ]' )
51
+ . setTitle ( 'Response Latency P95 [1m ]' )
52
52
. setDescription ( RESPONSE_LATENCY_DESCRIPTION )
53
53
. setData (
54
54
new SceneQueryRunner ( {
@@ -68,7 +68,7 @@ export function getNginxResponseLatencyPanel(ingress: string, namespace: string)
68
68
cluster="$cluster",
69
69
ingress="${ ingress } ",
70
70
exported_namespace="${ namespace } ",
71
- }[5m ]
71
+ }[1m ]
72
72
)
73
73
) by (host, path, le)
74
74
)
@@ -85,7 +85,7 @@ export function getNginxResponseLatencyPanel(ingress: string, namespace: string)
85
85
86
86
export function getNginxHeaderLatencyPanel ( ingress : string , namespace : string ) {
87
87
return PanelBuilders . timeseries ( )
88
- . setTitle ( 'Header Latency P95 [5m ]' )
88
+ . setTitle ( 'Header Latency P95 [1m ]' )
89
89
. setDescription ( HEADER_LATENCY_DESCRIPTION )
90
90
. setData (
91
91
new SceneQueryRunner ( {
@@ -105,7 +105,7 @@ export function getNginxHeaderLatencyPanel(ingress: string, namespace: string) {
105
105
cluster="$cluster",
106
106
ingress="${ ingress } ",
107
107
exported_namespace="${ namespace } ",
108
- }[5m ]
108
+ }[1m ]
109
109
)
110
110
) by (host, path, le)
111
111
)
@@ -122,7 +122,7 @@ export function getNginxHeaderLatencyPanel(ingress: string, namespace: string) {
122
122
123
123
export function getNginxUpstreamConnectLatencyPanel ( ingress : string , namespace : string ) {
124
124
return PanelBuilders . timeseries ( )
125
- . setTitle ( 'Upstream Connect Latency P95 [5m ]' )
125
+ . setTitle ( 'Upstream Connect Latency P95 [1m ]' )
126
126
. setDescription ( UPSTREAM_CONNECT_LATENCY_DESCRIPTION )
127
127
. setData (
128
128
new SceneQueryRunner ( {
@@ -142,7 +142,7 @@ export function getNginxUpstreamConnectLatencyPanel(ingress: string, namespace:
142
142
cluster="$cluster",
143
143
ingress="${ ingress } ",
144
144
exported_namespace="${ namespace } ",
145
- }[5m ]
145
+ }[1m ]
146
146
)
147
147
) by (host, path, le)
148
148
)
@@ -159,7 +159,7 @@ export function getNginxUpstreamConnectLatencyPanel(ingress: string, namespace:
159
159
160
160
export function getNginxRequestRatePanel ( ingress : string , namespace : string ) {
161
161
return PanelBuilders . timeseries ( )
162
- . setTitle ( 'Request Rate [5m ]' )
162
+ . setTitle ( 'Request Rate [1m ]' )
163
163
. setData (
164
164
new SceneQueryRunner ( {
165
165
datasource : {
@@ -176,7 +176,7 @@ export function getNginxRequestRatePanel(ingress: string, namespace: string) {
176
176
cluster="$cluster",
177
177
ingress="${ ingress } ",
178
178
exported_namespace="${ namespace } ",
179
- }[5m ]
179
+ }[1m ]
180
180
)
181
181
) by (host, path)
182
182
` ,
@@ -192,7 +192,7 @@ export function getNginxRequestRatePanel(ingress: string, namespace: string) {
192
192
193
193
export function getNginxResponseSizePanel ( ingress : string , namespace : string ) {
194
194
return PanelBuilders . timeseries ( )
195
- . setTitle ( 'Response Size [5m ]' )
195
+ . setTitle ( 'Response Size [1m ]' )
196
196
. setDescription ( RESPONSE_SIZE_DESCRIPTION )
197
197
. setUnit ( 'bytes' )
198
198
. setData (
@@ -213,7 +213,7 @@ export function getNginxResponseSizePanel(ingress: string, namespace: string) {
213
213
cluster="$cluster",
214
214
ingress="${ ingress } ",
215
215
exported_namespace="${ namespace } ",
216
- }[5m ]
216
+ }[1m ]
217
217
)
218
218
) by (host, path, le)
219
219
)
@@ -230,7 +230,7 @@ export function getNginxResponseSizePanel(ingress: string, namespace: string) {
230
230
231
231
export function getNginxRequestSizePanel ( ingress : string , namespace : string ) {
232
232
return PanelBuilders . timeseries ( )
233
- . setTitle ( 'Request Size [5m ]' )
233
+ . setTitle ( 'Request Size [1m ]' )
234
234
. setDescription ( REQUEST_SIZE_DESCRIPTION )
235
235
. setUnit ( 'bytes' )
236
236
. setData (
@@ -251,7 +251,7 @@ export function getNginxRequestSizePanel(ingress: string, namespace: string) {
251
251
cluster="$cluster",
252
252
ingress="${ ingress } ",
253
253
exported_namespace="${ namespace } ",
254
- }[5m ]
254
+ }[1m ]
255
255
)
256
256
) by (host, path, le)
257
257
)
@@ -268,7 +268,7 @@ export function getNginxRequestSizePanel(ingress: string, namespace: string) {
268
268
269
269
export function getNginxRequestRateByStatusCodePanel ( ingress : string , namespace : string ) {
270
270
return PanelBuilders . timeseries ( )
271
- . setTitle ( 'Request Rate by Status Code [5m ]' )
271
+ . setTitle ( 'Request Rate by Status Code [1m ]' )
272
272
. setData (
273
273
new SceneQueryRunner ( {
274
274
datasource : {
@@ -285,7 +285,7 @@ export function getNginxRequestRateByStatusCodePanel(ingress: string, namespace:
285
285
cluster="$cluster",
286
286
ingress="${ ingress } ",
287
287
exported_namespace="${ namespace } ",
288
- }[5m ]
288
+ }[1m ]
289
289
)
290
290
) by (host, path, status)
291
291
` ,
@@ -301,7 +301,7 @@ export function getNginxRequestRateByStatusCodePanel(ingress: string, namespace:
301
301
302
302
export function getNginxFailureRatioPanel ( ingress : string , namespace : string ) {
303
303
return PanelBuilders . timeseries ( )
304
- . setTitle ( 'Failure Ratio [5m ]' )
304
+ . setTitle ( 'Failure Ratio [1m ]' )
305
305
. setDescription ( 'The ratio of failed requests to total requests over the last 5 minutes' )
306
306
. setData (
307
307
new SceneQueryRunner ( {
@@ -320,7 +320,7 @@ export function getNginxFailureRatioPanel(ingress: string, namespace: string) {
320
320
ingress="${ ingress } ",
321
321
exported_namespace="${ namespace } ",
322
322
status=~"5.*"
323
- }[5m ]
323
+ }[1m ]
324
324
)
325
325
) by (host, path)
326
326
/
@@ -330,7 +330,7 @@ export function getNginxFailureRatioPanel(ingress: string, namespace: string) {
330
330
cluster="$cluster",
331
331
ingress="${ ingress } ",
332
332
exported_namespace="${ namespace } ",
333
- }[5m ]
333
+ }[1m ]
334
334
)
335
335
) by (host, path)
336
336
` ,
0 commit comments