[v9.3.x] Prometheus: Add present_over_time syntax highlighting (#72365)

Prometheus: Add present_over_time syntax highlighting (#72283)

add prometheus present_over_time syntax highlighting

to color present_over_time keyword for prometheus

(cherry picked from commit d96067985b)

Co-authored-by: stratomonitor <arnaud_lemaignen@yahoo.com>
This commit is contained in:
grafana-delivery-bot[bot]
2023-07-26 08:41:09 -05:00
committed by GitHub
parent cc744c4b55
commit 43cbb37911
@@ -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);