Prometheus: Add present_over_time syntax highlighting (#72283)

add prometheus present_over_time syntax highlighting

to color present_over_time keyword for prometheus
This commit is contained in:
stratomonitor 2023-07-26 15:21:14 +02:00 committed by GitHub
parent cae68b955b
commit d96067985b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);