blob: c96e9da11c66bbff2700f1e052fb7e11dd1e92ac [file] [log] [blame]
local grafana = import '../../../../vendor/grafonnet/grafana.libsonnet';
local prometheus = grafana.prometheus;
local gauge = grafana.gaugePanel;
local defaults = import '../../../globals/defaults.libsonnet';
gauge.new(
title='REST API latency (0.99 quantile)',
datasource=defaults.datasource,
unit='ms',
min=0,
max=50,
)
.addTarget(
target=prometheus.target(
'http_server_rest_api_server_latency_total{quantile="0.99", instance="$instance",replica="$replica"}',
legendFormat=' ',
intervalFactor=1,
instant=true,
),
)
.addThresholds([
{
color: 'green',
value: null
},
{
color: 'red',
value: 30
}
])