mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(promql,yaml): add parser and yaml injections
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
This commit is contained in:
parent
a2c3a7319f
commit
b64ea2ec44
6 changed files with 105 additions and 0 deletions
12
tests/query/injections/yaml/promql-on-prometheus-rules.yaml
Normal file
12
tests/query/injections/yaml/promql-on-prometheus-rules.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
groups:
|
||||
- name: Hardware alerts
|
||||
rules:
|
||||
- alert: Node down
|
||||
expr: up{job="node_exporter"} == 0
|
||||
# ^ promql
|
||||
for: 3m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
title: Node {{ $labels.instance }} is down
|
||||
description: Failed to scrape {{ $labels.job }} on {{ $labels.instance }} for more than 3 minutes. Node seems down.
|
||||
Loading…
Add table
Add a link
Reference in a new issue