Commit 9a9584c6 authored by Andrew Newdigate's avatar Andrew Newdigate

Use templatized datasource in all places.

parent e3d902da
......@@ -17,6 +17,7 @@ local generalGraphPanel(
title,
linewidth=1,
fill=0,
datasource="$PROMETHEUS_DS",
description=description,
decimals=2,
legend_show=true,
......
......@@ -17,6 +17,7 @@ local generalGraphPanel(
title,
linewidth=2,
fill=0,
datasource="$PROMETHEUS_DS",
description=description,
decimals=2,
legend_show=true,
......@@ -40,6 +41,7 @@ local generalGraphPanel(
local activeAlertsPanel() = grafana.tablePanel.new(
'Active Alerts',
datasource="$PROMETHEUS_DS",
styles=[{
"type": "hidden",
"pattern": "Time",
......@@ -93,6 +95,7 @@ local activeAlertsPanel() = grafana.tablePanel.new(
local latencySLOPanel() = grafana.singlestat.new(
'7d Latency SLO Error Budget',
datasource="$PROMETHEUS_DS",
format='percentunit',
)
.addTarget(
......@@ -105,6 +108,7 @@ local latencySLOPanel() = grafana.singlestat.new(
local errorRateSLOPanel() = grafana.singlestat.new(
'7d Apdex Rate SLO Error Budget',
datasource="$PROMETHEUS_DS",
format='percentunit',
)
.addTarget(
......
......@@ -16,6 +16,7 @@ local generalGraphPanel(
description=null
) = graphPanel.new(
title,
datasource="$PROMETHEUS_DS",
linewidth=2,
fill=0,
description=description,
......@@ -35,6 +36,7 @@ local generalGraphPanel(
local generateAnomalyPanel(title, query) =
graphPanel.new(
title,
datasource="$PROMETHEUS_DS",
linewidth=1,
fill=0,
decimals=2,
......@@ -66,6 +68,7 @@ local generateAnomalyPanel(title, query) =
local activeAlertsPanel = grafana.tablePanel.new(
'Active Alerts',
datasource="$PROMETHEUS_DS",
styles=[{
"type": "hidden",
"pattern": "Time",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment