Skip to content

Commit 8a7e10d

Browse files
Set min and max values for graphs
1 parent ff7c417 commit 8a7e10d

File tree

8 files changed

+179
-166
lines changed

8 files changed

+179
-166
lines changed

tarantool/cluster.libsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ local prometheus = grafana.prometheus;
305305
datasource=datasource,
306306

307307
format='none',
308+
min=0,
308309
fill=0,
309310
decimals=0,
310311
sort='decreasing',

tarantool/cpu.libsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ local prometheus = grafana.prometheus;
2020
datasource=datasource,
2121

2222
format='s',
23+
min=0,
2324
labelY1='time per minute',
2425
fill=0,
2526
decimals=3,

tarantool/http.libsonnet

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ local prometheus = grafana.prometheus;
2121
datasource=datasource,
2222

2323
format='none',
24+
min=0,
2425
labelY1='requests per second',
2526
fill=0,
2627
decimals=2,
@@ -148,6 +149,7 @@ local prometheus = grafana.prometheus;
148149
datasource=datasource,
149150

150151
format='s',
152+
min=0,
151153
labelY1=label,
152154
fill=0,
153155
decimals=3,

tarantool/net.libsonnet

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ local prometheus = grafana.prometheus;
2121
datasource=datasource,
2222

2323
format='Bps',
24+
min=0,
2425
labelY1=labelY1,
2526
fill=0,
2627
decimals=2,
@@ -120,6 +121,7 @@ local prometheus = grafana.prometheus;
120121
datasource=datasource,
121122

122123
format='none',
124+
min=0,
123125
labelY1='requests per second',
124126
fill=0,
125127
decimals=2,
@@ -164,6 +166,7 @@ local prometheus = grafana.prometheus;
164166
datasource=datasource,
165167

166168
format='none',
169+
min=0,
167170
labelY1='pending',
168171
fill=0,
169172
decimals=2,
@@ -208,6 +211,7 @@ local prometheus = grafana.prometheus;
208211
datasource=datasource,
209212

210213
format='none',
214+
min=0,
211215
labelY1='current',
212216
fill=0,
213217
decimals=0,

tarantool/operations.libsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ local prometheus = grafana.prometheus;
2121
datasource=datasource,
2222

2323
format='none',
24+
min=0,
2425
labelY1=labelY1,
2526
fill=0,
2627
decimals=2,

tarantool/slab.libsonnet

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,24 @@ local prometheus = grafana.prometheus;
1717
),
1818

1919
local used_panel(
20-
title,
21-
description,
22-
datasource,
23-
policy,
24-
measurement,
25-
job,
26-
metric_name,
27-
format,
28-
labelY1
20+
title=null,
21+
description=null,
22+
datasource=null,
23+
policy=null,
24+
measurement=null,
25+
job=null,
26+
metric_name=null,
27+
format=null,
28+
labelY1=null,
29+
max=null
2930
) = graph.new(
3031
title=title,
3132
description=description,
3233
datasource=datasource,
3334

3435
format=format,
36+
min=0,
37+
max=max,
3538
labelY1=labelY1,
3639
fill=0,
3740
decimals=2,
@@ -73,7 +76,8 @@ local prometheus = grafana.prometheus;
7376
job,
7477
metric_name,
7578
format='percent',
76-
labelY1='used ratio'
79+
labelY1='used ratio',
80+
max=100
7781
),
7882

7983
quota_used_ratio(

0 commit comments

Comments
 (0)