Skip to content

HDX-11579: Add Grafana annotations support#151

Open
odemkovych wants to merge 9 commits into
developfrom
feature/HDX-11579_add_annotations
Open

HDX-11579: Add Grafana annotations support#151
odemkovych wants to merge 9 commits into
developfrom
feature/HDX-11579_add_annotations

Conversation

@odemkovych

@odemkovych odemkovych commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

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

  • Declare annotations capability in src/plugin.json.
  • Register a minimal AnnotationSupport (prepareQuery + getDefaultQuery) via this.annotations in the DataSource constructor — src/annotations.ts.
  • Retag annotation requests in datasource.ts query() so they do not pollute the panel-query filter / options cache (app === 'annotation').
  • Reuse the existing QueryEditor; result-column-to-event-field binding is delegated to Grafana's built-in annotation field-mapping UI.
  • Fix annotation editor button flicker.
  • Unit tests (annotations.test.ts, datasource.test.ts) and Playwright e2e coverage (tests/annotations.spec.ts).
  • README — new "Annotations" subsection with a worked example.

Compatibility

Non-breaking. Existing dashboards and panel queries are unaffected. No new dependencies; AnnotationSupport is already exported by @grafana/data.

🤖 Generated with Claude Code

@odemkovych odemkovych changed the title [HDX-11579 add annotations [HDX-11579] add Annotations Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Levitate is-compatible report:

🔍 Resolving @grafana/data@latest...
🔍 Resolving @grafana/ui@latest...
🔍 Resolving @grafana/runtime@latest...
🔍 Resolving @grafana/schema@latest...
🔍 Resolving @grafana/e2e-selectors@latest...
🔍 Resolving @grafana/experimental@latest...

🔬 Checking compatibility between ./src/module.ts and @grafana/data@13.0.2...
✔ Found @grafana/data version 12.4.2 locally

🔬 Checking compatibility between ./src/module.ts and @grafana/ui@13.0.2...
✔ Found @grafana/ui version 12.4.2 locally

🔬 Checking compatibility between ./src/module.ts and @grafana/runtime@13.0.2...
✔ Found @grafana/runtime version 12.4.2 locally

🔬 Checking compatibility between ./src/module.ts and @grafana/schema@13.0.2...
✔ Found @grafana/schema version 12.4.2 locally

🔬 Checking compatibility between ./src/module.ts and @grafana/e2e-selectors@13.0.2...
Skipping package @grafana/e2e-selectors because it is not used in the project or not installed locally.
did you forget to run yarn install or npm install?

🔬 Checking compatibility between ./src/module.ts and @grafana/experimental@2.1.6...
Skipping package @grafana/experimental because it is not used in the project or not installed locally.
did you forget to run yarn install or npm install?

✔️ ./src/module.ts appears to be compatible with @grafana/data,@grafana/ui,@grafana/runtime,@grafana/schema,@grafana/e2e-selectors,@grafana/experimental

@odemkovych odemkovych self-assigned this Jun 9, 2026
@odemkovych odemkovych changed the title [HDX-11579] add Annotations HDX-11579: Add Grafana annotations support Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants