How prydin/aria-operations-plug-in-for-grafana works
This is a Grafana datasource plugin for querying VMware Aria Operations metrics. Users configure credentials and connection settings, choose resources and metrics in Easy mode or compose an Advanced query, then Grafana executes it and displays returned metric data. The graph also preserves variable queries, query-language editing assistance, and metric aggregation/smoothing capabilities. Source excerpts show editor-to-datasource calls and query compilation; unsampled aggregation internals and parts of the API integration are represented cautiously where their wiring is not evidenced.
Main entry points: datasource.ts Datasource API · QueryTextEditor.tsx Advanced text editor · module.ts Plugin registration · QueryEditor.tsx Easy query editor
Components 14
Plugin setup
- Plugin registration
src/module.ts - Connection settings
src/components/ConfigEditor.tsx
Query editing
- Easy query editor
src/components/QueryEditor.tsx - Variable query editor
src/components/VariableQueryEditor.tsx - Advanced text editor
src/components/QueryTextEditor.tsx - Query completion
src/queryparser/monaco/completion.ts - Syntax highlighting
src/queryparser/monaco/highlight.ts
Query runtime
- Query compiler
src/queryparser/compiler.ts - Datasource API
src/datasource.ts
Metric processing
- Metric aggregation
src/aggregator.ts - Metric smoothing
src/smoother.ts
Other components
- Grafana user
- Grafana
- Aria Operations
Connections 17
- Grafana user → Grafana: configures and queries
README.md - Grafana → Plugin registration: loads plugin
src/module.ts - Plugin registration → Connection settings: registers editor
src/module.ts - Plugin registration → Easy query editor: registers editor
src/module.ts - Plugin registration → Variable query editor: registers editor
src/module.ts - Connection settings → Grafana: saves settings
src/components/ConfigEditor.tsx - Easy query editor → Datasource API: loads choices
src/components/QueryEditor.tsx - Easy query editor → Query compiler: builds Easy query
src/components/QueryEditor.tsx - Easy query editor → Advanced text editor: renders editor
src/components/QueryEditor.tsx - Variable query editor → Advanced text editor: renders editor
src/components/VariableQueryEditor.tsx - Advanced text editor → Query completion: registers completion
src/components/QueryTextEditor.tsx - Advanced text editor → Syntax highlighting: registers highlighting
src/components/QueryTextEditor.tsx - Advanced text editor → Datasource API: provides completion context
src/components/QueryTextEditor.tsx - Datasource API → Query compiler: compiles query
src/datasource.ts - Datasource API → Aria Operations: requests metrics
src/datasource.ts - Datasource API → Metric aggregation: may aggregate metrics
- Datasource API → Metric smoothing: may smooth metrics