From d96067985b3f4752bef2a2545c926a97c65393b6 Mon Sep 17 00:00:00 2001 From: stratomonitor Date: Wed, 26 Jul 2023 15:21:14 +0200 Subject: [PATCH] Prometheus: Add present_over_time syntax highlighting (#72283) add prometheus present_over_time syntax highlighting to color present_over_time keyword for prometheus --- public/app/plugins/datasource/prometheus/promql.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/app/plugins/datasource/prometheus/promql.ts b/public/app/plugins/datasource/prometheus/promql.ts index 8b4f032989a..6baa26d4899 100644 --- a/public/app/plugins/datasource/prometheus/promql.ts +++ b/public/app/plugins/datasource/prometheus/promql.ts @@ -521,6 +521,12 @@ export const FUNCTIONS = [ detail: 'last_over_time(range-vector)', documentation: 'The most recent point value in specified interval.', }, + { + insertText: 'present_over_time', + label: 'present_over_time', + detail: 'present_over_time(range-vector)', + documentation: 'The value 1 for any series in the specified interval.', + }, ]; export const PROM_KEYWORDS = FUNCTIONS.map((keyword) => keyword.label);