Skip to content

Add Grafana macro support for FireQL queries (time range and epoch-ms)#28

Open
renatovieiradesouza wants to merge 2 commits intopgollangi:mainfrom
renatovieiradesouza:rsouza/macros
Open

Add Grafana macro support for FireQL queries (time range and epoch-ms)#28
renatovieiradesouza wants to merge 2 commits intopgollangi:mainfrom
renatovieiradesouza:rsouza/macros

Conversation

@renatovieiradesouza
Copy link
Copy Markdown

@renatovieiradesouza renatovieiradesouza commented Sep 28, 2025

Add Grafana macro support for FireQL queries.

Implemented backend macro expansion for: $timeFrom(), $_timeTo(), $interval_ms, $_unixEpochFrom()/To(), $unixEpochFromMs()/ToMs(), $_timeFilter()/ $timeFilter(), and $timeFilterMs()/ $timeFilterMs().

Added unit tests for macro expansion; moved emulator tests under an integration build tag.

Updated README with usage and examples; no breaking changes to existing queries.

image

@renatovieiradesouza
Copy link
Copy Markdown
Author

@pgollangi Could you please review this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants