diff options
| author | Pablo SEMINARIO <pablo@seminar.io> | 2020-08-19 11:01:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-19 11:01:45 +0200 |
| commit | 21240043da9c8c2aa5222615877de4ea99e047bb (patch) | |
| tree | d8e8b0ad61e2fd5570a4c93ef44d78de925c4d11 /tests/examplefiles | |
| parent | e59cdb5d26079a2fb35434dd7461db672955c2f1 (diff) | |
| download | pygments-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.promql | 8 |
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 + |
