summaryrefslogtreecommitdiff
path: root/tests/examplefiles
diff options
context:
space:
mode:
authorPablo SEMINARIO <pablo@seminar.io>2020-08-19 11:01:45 +0200
committerGitHub <noreply@github.com>2020-08-19 11:01:45 +0200
commit21240043da9c8c2aa5222615877de4ea99e047bb (patch)
treed8e8b0ad61e2fd5570a4c93ef44d78de925c4d11 /tests/examplefiles
parente59cdb5d26079a2fb35434dd7461db672955c2f1 (diff)
downloadpygments-git-21240043da9c8c2aa5222615877de4ea99e047bb.tar.gz
Add a PromQL lexer (#1506)
Including tests and an example.promql file.
Diffstat (limited to 'tests/examplefiles')
-rw-r--r--tests/examplefiles/example.promql8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/examplefiles/example.promql b/tests/examplefiles/example.promql
new file mode 100644
index 00000000..e2fee087
--- /dev/null
+++ b/tests/examplefiles/example.promql
@@ -0,0 +1,8 @@
+# A metric with label filtering
+go_gc_duration_seconds{instance="localhost:9090", job="alertmanager"}
+
+# Aggregation operators
+sum by (app, proc) (
+ instance_memory_limit_bytes - instance_memory_usage_bytes
+) / 1024 / 1024
+