Uncollapse rows and change order.
This commit is contained in:
@ -8,7 +8,7 @@ prewarming_pool_size = BarGauge(
|
|||||||
title="Prewarming Pool Size",
|
title="Prewarming Pool Size",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("prewarming-pool-size"))],
|
targets=[InfluxDBTarget(query=read_query("prewarming-pool-size"))],
|
||||||
gridPos=GridPos(h=10, w=11, x=0, y=3),
|
gridPos=GridPos(h=10, w=11, x=0, y=1),
|
||||||
allValues=True,
|
allValues=True,
|
||||||
orientation=ORIENTATION_VERTICAL,
|
orientation=ORIENTATION_VERTICAL,
|
||||||
displayMode=GAUGE_DISPLAY_MODE_BASIC,
|
displayMode=GAUGE_DISPLAY_MODE_BASIC,
|
||||||
@ -19,7 +19,7 @@ idle_runner = TimeSeries(
|
|||||||
title="Idle Runner",
|
title="Idle Runner",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("idle-runner"))],
|
targets=[InfluxDBTarget(query=read_query("idle-runner"))],
|
||||||
gridPos=GridPos(h=10, w=13, x=11, y=3),
|
gridPos=GridPos(h=10, w=13, x=11, y=1),
|
||||||
lineInterpolation="stepAfter",
|
lineInterpolation="stepAfter",
|
||||||
maxDataPoints=None
|
maxDataPoints=None
|
||||||
)
|
)
|
||||||
@ -28,7 +28,7 @@ runner_startup_duration = TimeSeries(
|
|||||||
title="Runner startup duration",
|
title="Runner startup duration",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("runner-startup-duration"))],
|
targets=[InfluxDBTarget(query=read_query("runner-startup-duration"))],
|
||||||
gridPos=GridPos(h=10, w=12, x=0, y=13),
|
gridPos=GridPos(h=10, w=12, x=0, y=11),
|
||||||
unit="ns",
|
unit="ns",
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -36,18 +36,20 @@ used_runner = TimeSeries(
|
|||||||
title="Used Runner",
|
title="Used Runner",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("used-runner"))],
|
targets=[InfluxDBTarget(query=read_query("used-runner"))],
|
||||||
gridPos=GridPos(h=10, w=12, x=12, y=13),
|
gridPos=GridPos(h=10, w=12, x=12, y=11),
|
||||||
maxDataPoints=None
|
maxDataPoints=None
|
||||||
)
|
)
|
||||||
|
|
||||||
availability_row = RowPanel(
|
availability_row = RowPanel(
|
||||||
title="Availability",
|
title="Availability",
|
||||||
collapsed=True,
|
collapsed=False,
|
||||||
gridPos=GridPos(h=1, w=24, x=0, y=2),
|
gridPos=GridPos(h=1, w=24, x=0, y=0),
|
||||||
panels=[
|
|
||||||
prewarming_pool_size,
|
|
||||||
idle_runner,
|
|
||||||
runner_startup_duration,
|
|
||||||
used_runner
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
availability_panels = [
|
||||||
|
availability_row,
|
||||||
|
prewarming_pool_size,
|
||||||
|
idle_runner,
|
||||||
|
runner_startup_duration,
|
||||||
|
used_runner,
|
||||||
|
]
|
||||||
|
@ -9,7 +9,7 @@ requests_per_minute = TimeSeries(
|
|||||||
title="Requests per minute",
|
title="Requests per minute",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("requests-per-minute"))],
|
targets=[InfluxDBTarget(query=read_query("requests-per-minute"))],
|
||||||
gridPos=GridPos(h=9, w=8, x=0, y=1),
|
gridPos=GridPos(h=9, w=8, x=0, y=22),
|
||||||
scaleDistributionType="log",
|
scaleDistributionType="log",
|
||||||
extraJson=grey_all_mapping
|
extraJson=grey_all_mapping
|
||||||
)
|
)
|
||||||
@ -19,7 +19,7 @@ request_latency = Heatmap(
|
|||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
dataFormat="timeseries",
|
dataFormat="timeseries",
|
||||||
targets=[InfluxDBTarget(query=read_query("request-latency"))],
|
targets=[InfluxDBTarget(query=read_query("request-latency"))],
|
||||||
gridPos=GridPos(h=9, w=8, x=8, y=1),
|
gridPos=GridPos(h=9, w=8, x=8, y=22),
|
||||||
maxDataPoints=None,
|
maxDataPoints=None,
|
||||||
extraJson={
|
extraJson={
|
||||||
"options": {},
|
"options": {},
|
||||||
@ -33,7 +33,7 @@ service_time = TimeSeries(
|
|||||||
title="Service time (99.9%)",
|
title="Service time (99.9%)",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("service-time"))],
|
targets=[InfluxDBTarget(query=read_query("service-time"))],
|
||||||
gridPos=GridPos(h=9, w=8, x=16, y=1),
|
gridPos=GridPos(h=9, w=8, x=16, y=22),
|
||||||
scaleDistributionType="log",
|
scaleDistributionType="log",
|
||||||
scaleDistributionLog=10,
|
scaleDistributionLog=10,
|
||||||
unit="ns",
|
unit="ns",
|
||||||
@ -44,7 +44,7 @@ current_environment_count = Stat(
|
|||||||
title="Current environment count",
|
title="Current environment count",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("current-environment-count"))],
|
targets=[InfluxDBTarget(query=read_query("current-environment-count"))],
|
||||||
gridPos=GridPos(h=6, w=8, x=0, y=10),
|
gridPos=GridPos(h=6, w=8, x=0, y=31),
|
||||||
alignment='center'
|
alignment='center'
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ currently_used_runners = Stat(
|
|||||||
title="Currently used runners",
|
title="Currently used runners",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("currently-used-runners"))],
|
targets=[InfluxDBTarget(query=read_query("currently-used-runners"))],
|
||||||
gridPos=GridPos(h=6, w=8, x=8, y=10),
|
gridPos=GridPos(h=6, w=8, x=8, y=31),
|
||||||
alignment="center"
|
alignment="center"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ number_of_executions = BarGauge(
|
|||||||
title="Number of Executions",
|
title="Number of Executions",
|
||||||
dataSource="Poseidon",
|
dataSource="Poseidon",
|
||||||
targets=[InfluxDBTarget(query=read_query("number-of-executions"))],
|
targets=[InfluxDBTarget(query=read_query("number-of-executions"))],
|
||||||
gridPos=GridPos(h=6, w=8, x=16, y=10),
|
gridPos=GridPos(h=6, w=8, x=16, y=31),
|
||||||
allValues=True,
|
allValues=True,
|
||||||
orientation=ORIENTATION_VERTICAL,
|
orientation=ORIENTATION_VERTICAL,
|
||||||
displayMode=GAUGE_DISPLAY_MODE_BASIC,
|
displayMode=GAUGE_DISPLAY_MODE_BASIC,
|
||||||
@ -71,7 +71,7 @@ execution_duration = BarGauge(
|
|||||||
title="Execution duration",
|
title="Execution duration",
|
||||||
dataSource="Poseidon",
|
dataSource="Poseidon",
|
||||||
targets=[InfluxDBTarget(query=read_query("execution-duration"))],
|
targets=[InfluxDBTarget(query=read_query("execution-duration"))],
|
||||||
gridPos=GridPos(h=11, w=8, x=0, y=16),
|
gridPos=GridPos(h=11, w=8, x=0, y=37),
|
||||||
allValues=True,
|
allValues=True,
|
||||||
displayMode=GAUGE_DISPLAY_MODE_GRADIENT,
|
displayMode=GAUGE_DISPLAY_MODE_GRADIENT,
|
||||||
format="ns",
|
format="ns",
|
||||||
@ -82,7 +82,7 @@ executions_per_runner = BarGauge(
|
|||||||
title="Executions per runner",
|
title="Executions per runner",
|
||||||
dataSource="Poseidon",
|
dataSource="Poseidon",
|
||||||
targets=[InfluxDBTarget(query=read_query("executions-per-runner"))],
|
targets=[InfluxDBTarget(query=read_query("executions-per-runner"))],
|
||||||
gridPos=GridPos(h=11, w=8, x=8, y=16),
|
gridPos=GridPos(h=11, w=8, x=8, y=37),
|
||||||
allValues=True,
|
allValues=True,
|
||||||
displayMode=GAUGE_DISPLAY_MODE_GRADIENT,
|
displayMode=GAUGE_DISPLAY_MODE_GRADIENT,
|
||||||
max=None,
|
max=None,
|
||||||
@ -92,7 +92,7 @@ executions_per_minute = BarGauge(
|
|||||||
title="Executions per minute",
|
title="Executions per minute",
|
||||||
dataSource="Poseidon",
|
dataSource="Poseidon",
|
||||||
targets=[InfluxDBTarget(query=read_query("executions-per-minute"))],
|
targets=[InfluxDBTarget(query=read_query("executions-per-minute"))],
|
||||||
gridPos=GridPos(h=11, w=8, x=16, y=16),
|
gridPos=GridPos(h=11, w=8, x=16, y=37),
|
||||||
allValues=True,
|
allValues=True,
|
||||||
displayMode=GAUGE_DISPLAY_MODE_GRADIENT,
|
displayMode=GAUGE_DISPLAY_MODE_GRADIENT,
|
||||||
max=None,
|
max=None,
|
||||||
@ -100,17 +100,19 @@ executions_per_minute = BarGauge(
|
|||||||
|
|
||||||
general_row = RowPanel(
|
general_row = RowPanel(
|
||||||
title="General",
|
title="General",
|
||||||
collapsed=True,
|
collapsed=False,
|
||||||
gridPos=GridPos(h=1, w=24, x=0, y=0),
|
gridPos=GridPos(h=1, w=24, x=0, y=21),
|
||||||
panels=[
|
|
||||||
requests_per_minute,
|
|
||||||
request_latency,
|
|
||||||
service_time,
|
|
||||||
current_environment_count,
|
|
||||||
currently_used_runners,
|
|
||||||
number_of_executions,
|
|
||||||
execution_duration,
|
|
||||||
executions_per_runner,
|
|
||||||
executions_per_minute
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
general_panels = [
|
||||||
|
general_row,
|
||||||
|
requests_per_minute,
|
||||||
|
request_latency,
|
||||||
|
service_time,
|
||||||
|
current_environment_count,
|
||||||
|
currently_used_runners,
|
||||||
|
number_of_executions,
|
||||||
|
execution_duration,
|
||||||
|
executions_per_runner,
|
||||||
|
executions_per_minute
|
||||||
|
]
|
||||||
|
@ -1,18 +1,14 @@
|
|||||||
from grafanalib.core import Dashboard, Templating, Time
|
from grafanalib.core import Dashboard, Templating, Time
|
||||||
|
|
||||||
from panels.availability_row import availability_row
|
from panels.availability_row import availability_panels
|
||||||
from panels.general_row import general_row
|
from panels.general_row import general_panels
|
||||||
from panels.runner_insights_row import runner_insights_row
|
from panels.runner_insights_row import runner_insights_panels
|
||||||
from utils.variables import stage_variable, environment_variable
|
from utils.variables import stage_variable, environment_variable
|
||||||
|
|
||||||
dashboard = Dashboard(
|
dashboard = Dashboard(
|
||||||
title="Poseidon autogen",
|
title="Poseidon autogen",
|
||||||
timezone="browser",
|
timezone="browser",
|
||||||
panels=[
|
panels=availability_panels + general_panels + runner_insights_panels,
|
||||||
general_row,
|
|
||||||
runner_insights_row,
|
|
||||||
availability_row
|
|
||||||
],
|
|
||||||
templating=Templating(list=[
|
templating=Templating(list=[
|
||||||
stage_variable,
|
stage_variable,
|
||||||
environment_variable
|
environment_variable
|
||||||
|
@ -14,7 +14,7 @@ execution_duration = Histogram(
|
|||||||
title="Execution duration",
|
title="Execution duration",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("execution-duration-hist"))],
|
targets=[InfluxDBTarget(query=read_query("execution-duration-hist"))],
|
||||||
gridPos=GridPos(h=8, w=24, x=0, y=2),
|
gridPos=GridPos(h=8, w=24, x=0, y=49),
|
||||||
bucketSize=100000000,
|
bucketSize=100000000,
|
||||||
colorMode="palette-classic",
|
colorMode="palette-classic",
|
||||||
maxDataPoints=None,
|
maxDataPoints=None,
|
||||||
@ -25,7 +25,7 @@ executions_per_runner = Histogram(
|
|||||||
title="Executions per runner",
|
title="Executions per runner",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("executions-per-runner-hist"))],
|
targets=[InfluxDBTarget(query=read_query("executions-per-runner-hist"))],
|
||||||
gridPos=GridPos(h=10, w=11, x=0, y=10),
|
gridPos=GridPos(h=10, w=11, x=0, y=57),
|
||||||
bucketSize=1,
|
bucketSize=1,
|
||||||
colorMode="palette-classic",
|
colorMode="palette-classic",
|
||||||
)
|
)
|
||||||
@ -34,7 +34,7 @@ executions_per_minute = TimeSeries(
|
|||||||
title="Executions per minute",
|
title="Executions per minute",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("executions-per-minute-time"))],
|
targets=[InfluxDBTarget(query=read_query("executions-per-minute-time"))],
|
||||||
gridPos=GridPos(h=10, w=13, x=11, y=10),
|
gridPos=GridPos(h=10, w=13, x=11, y=57),
|
||||||
maxDataPoints=None
|
maxDataPoints=None
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ request_body_size = TimeSeries(
|
|||||||
title="Request Body Size",
|
title="Request Body Size",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("request-body-size"))],
|
targets=[InfluxDBTarget(query=read_query("request-body-size"))],
|
||||||
gridPos=GridPos(h=10, w=11, x=0, y=20),
|
gridPos=GridPos(h=10, w=11, x=0, y=67),
|
||||||
scaleDistributionType="log",
|
scaleDistributionType="log",
|
||||||
unit="bytes",
|
unit="bytes",
|
||||||
maxDataPoints=None
|
maxDataPoints=None
|
||||||
@ -52,19 +52,21 @@ runner_per_minute = TimeSeries(
|
|||||||
title="Runner per minute",
|
title="Runner per minute",
|
||||||
dataSource='Poseidon',
|
dataSource='Poseidon',
|
||||||
targets=[InfluxDBTarget(query=read_query("runner-per-minute"))],
|
targets=[InfluxDBTarget(query=read_query("runner-per-minute"))],
|
||||||
gridPos=GridPos(h=10, w=13, x=11, y=20),
|
gridPos=GridPos(h=10, w=13, x=11, y=67),
|
||||||
maxDataPoints=None
|
maxDataPoints=None
|
||||||
)
|
)
|
||||||
|
|
||||||
runner_insights_row = RowPanel(
|
runner_insights_row = RowPanel(
|
||||||
title="Runner Insights",
|
title="Runner Insights",
|
||||||
collapsed=True,
|
collapsed=False,
|
||||||
gridPos=GridPos(h=1, w=24, x=0, y=1),
|
gridPos=GridPos(h=1, w=24, x=0, y=48),
|
||||||
panels=[
|
|
||||||
execution_duration,
|
|
||||||
executions_per_runner,
|
|
||||||
executions_per_minute,
|
|
||||||
request_body_size,
|
|
||||||
runner_per_minute
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
runner_insights_panels = [
|
||||||
|
runner_insights_row,
|
||||||
|
execution_duration,
|
||||||
|
executions_per_runner,
|
||||||
|
executions_per_minute,
|
||||||
|
request_body_size,
|
||||||
|
runner_per_minute,
|
||||||
|
]
|
||||||
|
Reference in New Issue
Block a user