DQL Syntax

by Andrew Usher
5
4
3
2
1
Score: 35/100
New Plugin

Description

This plugin has not been manually reviewed by Obsidian staff. Syntax highlighting for Dynatrace Query Language (DQL) in code blocks.

Reviews

No reviews yet.

Stats

stars
downloads
0
forks
0
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

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