blob: 78d7e551e09f40c4b2ec0ae9b1864d44d2ee0bb7 [file] [log] [blame]
local grafana = import '../../../../vendor/grafonnet/grafana.libsonnet';
local prometheus = grafana.prometheus;
local lineGraph = import '../../../globals/line-graph.libsonnet';
local BATCH_TARGET = 'batch';
local INTERACTIVE_TARGET = 'interactive';
lineGraph.new(
title='SSH queue',
labelY1='Tasks',
)
.addTarget(
prometheus.target(
'queue_ssh_batch_worker_scheduled_tasks{instance="$instance",replica="$replica"}',
legendFormat=BATCH_TARGET,
)
)
.addTarget(
prometheus.target(
'queue_ssh_interactive_worker_scheduled_tasks{instance="$instance",replica="$replica"}',
legendFormat=INTERACTIVE_TARGET,
)
)
.addSeriesOverride(
{
alias: BATCH_TARGET,
color: '#FFB357',
}
)
.addSeriesOverride(
{
alias: INTERACTIVE_TARGET,
color: '#C0D8FF',
}
)