HDX-11579: Add Grafana annotations support#151
Conversation
Migrate eslint config to flat config format and update devDependencies to latest versions.
…p using deprecated Select (not replacing with ComboBox) in sake of support grafana 10
# Conflicts: # go.mod # go.sum
|
Levitate is-compatible report: 🔍 Resolving @grafana/data@latest... 🔬 Checking compatibility between ./src/module.ts and @grafana/data@13.0.2... 🔬 Checking compatibility between ./src/module.ts and @grafana/ui@13.0.2... 🔬 Checking compatibility between ./src/module.ts and @grafana/runtime@13.0.2... 🔬 Checking compatibility between ./src/module.ts and @grafana/schema@13.0.2... 🔬 Checking compatibility between ./src/module.ts and @grafana/e2e-selectors@13.0.2... 🔬 Checking compatibility between ./src/module.ts and @grafana/experimental@2.1.6... ✔️ ./src/module.ts appears to be compatible with @grafana/data,@grafana/ui,@grafana/runtime,@grafana/schema,@grafana/e2e-selectors,@grafana/experimental |
HDX-11579: Add Grafana annotations support
Summary
Enables the Hydrolix datasource to be used as an annotation source in Grafana dashboards. Users storing events in Hydrolix (deploys, incidents, audit records) can now surface them as dashboard annotations without piping through a second datasource.
Changes
annotationscapability insrc/plugin.json.AnnotationSupport(prepareQuery+getDefaultQuery) viathis.annotationsin theDataSourceconstructor —src/annotations.ts.datasource.tsquery()so they do not pollute the panel-query filter / options cache (app === 'annotation').QueryEditor; result-column-to-event-field binding is delegated to Grafana's built-in annotation field-mapping UI.annotations.test.ts,datasource.test.ts) and Playwright e2e coverage (tests/annotations.spec.ts).Compatibility
Non-breaking. Existing dashboards and panel queries are unaffected. No new dependencies;
AnnotationSupportis already exported by@grafana/data.🤖 Generated with Claude Code