[v9.5.x] Prometheus: Add present_over_time syntax highlighting (#72367)
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:
co-authored by
stratomonitor
parent
b8ac666ea5
commit
751d35c396
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user