DQL Syntax

by Andrew Usher
5
4
3
2
1
Score: 30/100

Description

Reviews

No reviews yet.

Stats

0
stars
104
downloads
0
forks
103
days
104
days
104
days
4
total PRs
0
open PRs
1
closed PRs
3
merged PRs
7
total issues
7
open issues
0
closed issues
16
commits

Latest Version

3 months ago

Changelog

What's Changed

Full Changelog: https://github.com/AndrewUsher/obsidian-dynatrace-dql/compare/1.0.4...1.1.0

README file from

Github

DQL Syntax

Obsidian plugin — syntax highlighting for Dynatrace Query Language (DQL)

Engineers and SREs who document their Dynatrace workflows in Obsidian can get proper syntax highlighting for embedded DQL queries.

DQL Syntax highlighting


Usage

```dql
fetch logs, from:now()-1h
| filter matchesValue(log.source, "pgi.log")
| summarize count(), by:{status, host.name}
| sort count desc
| limit 100
```

Works in reading mode with full token highlighting and a copy button.


Install

Manual

  1. Download main.js, manifest.json, styles.css from the latest release
  2. Create .obsidian/plugins/dql-syntax/ in your vault
  3. Copy the three files there
  4. Enable in Settings → Community Plugins

What gets highlighted

Token Example
Commands fetch, filter, summarize, sort, fields, parse
Functions count, sum, filter, endsWith, matchesValue, if
Data types string, long, double, boolean, timestamp, duration
Keywords and, or, not, in, as, by, from, on, true, false
Named params from:, to:, by:, on:
Operators | == != <= >= + - * / @ ~
Strings "double" 'single' `backtick-quoted`
Duration literals 1h, 30m, 10s, 7d, 1w, 100ms
Numbers 42, 3.14
Comments // and /* */

Query Templates

Ready-to-use DQL queries in templates/:

File Content
logs-hunting.dql Log analysis, error tracking, performance breakdowns
bizevents-analysis.dql Business event aggregation and filtering
infrastructure-metrics.dql Host metrics, timeseries, and Smartscape traversal

Build

npm install
npm run build   # production → generates main.js
npm run dev     # watch mode for development

References


License

MIT

Credits