From fe494a4ab3bef74ac913ae789e7aa87eb098d606 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 24 Feb 2023 22:07:42 -0800 Subject: [PATCH] add prometheus widget data validation --- src/widgets/prometheus/widget.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/widgets/prometheus/widget.js b/src/widgets/prometheus/widget.js index 2d442e49..40754477 100644 --- a/src/widgets/prometheus/widget.js +++ b/src/widgets/prometheus/widget.js @@ -6,7 +6,10 @@ const widget = { mappings: { targets: { - endpoint: "targets" + endpoint: "targets", + validate: [ + "data" + ] }, }, };