mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 01:23:32 -06:00
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:
parent
cae68b955b
commit
d96067985b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user