lab6: тест security ждёт ready (ключ o/), ось saturation 0–100%
This commit is contained in:
@@ -31,7 +31,7 @@ def row(title):
|
||||
y += 1
|
||||
|
||||
|
||||
def ts(title, targets, unit, x, w=8, h=8, desc='', stack=False, minv=None):
|
||||
def ts(title, targets, unit, x, w=8, h=8, desc='', stack=False, minv=None, maxv=None):
|
||||
p = {'type': 'timeseries', 'title': title, 'id': nid(), 'datasource': PROM, 'description': desc,
|
||||
'gridPos': {'h': h, 'w': w, 'x': x, 'y': y},
|
||||
'fieldConfig': {'defaults': {'unit': unit, 'custom': {'fillOpacity': 10, 'showPoints': 'never',
|
||||
@@ -42,6 +42,8 @@ def ts(title, targets, unit, x, w=8, h=8, desc='', stack=False, minv=None):
|
||||
'exemplar': True} for i, (e, l) in enumerate(targets)]}
|
||||
if minv is not None:
|
||||
p['fieldConfig']['defaults']['min'] = minv
|
||||
if maxv is not None:
|
||||
p['fieldConfig']['defaults']['max'] = maxv
|
||||
panels.append(p)
|
||||
|
||||
|
||||
@@ -118,7 +120,7 @@ ts('RabbitMQ: сообщения в очередях',
|
||||
'none', 16)
|
||||
y += 8
|
||||
ts('Saturation worker (busy / capacity)',
|
||||
[('sum(messenger_worker_busy) / sum(messenger_worker_capacity)', 'занято слотов')], 'percentunit', 0, minv=0)
|
||||
[('sum(messenger_worker_busy) / sum(messenger_worker_capacity)', 'занято слотов')], 'percentunit', 0, minv=0, maxv=1)
|
||||
ts('Publish outbox → broker (confirm) p95',
|
||||
[(q('messenger_outbox_publish_duration_seconds_bucket')(0.95), 'p95'),
|
||||
('sum(rate(messenger_outbox_published_total[$__rate_interval]))', 'сообщений/с')], 's', 8)
|
||||
|
||||
Reference in New Issue
Block a user