From b0c1de18023f87f0f0b185de03d1d7a9dee275e7 Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Mon, 25 Oct 2021 21:34:38 +0300 Subject: [PATCH] todos --- src/datasources/prometheus.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/datasources/prometheus.rs b/src/datasources/prometheus.rs index 6eae3c9..246b1d3 100644 --- a/src/datasources/prometheus.rs +++ b/src/datasources/prometheus.rs @@ -38,6 +38,8 @@ impl Prometheus { } pub fn parse_result(value: Value) -> types::Result { + // TODO: check that metric exists + // TODO: check status: "error" let metric = &value["data"]["result"][0]["metric"]; let metric_name = metric .as_object()