Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose shared tooltip/crosshair's timestamp as variable #78948

Open
zorba128 opened this issue Dec 1, 2023 · 1 comment
Open

Expose shared tooltip/crosshair's timestamp as variable #78948

zorba128 opened this issue Dec 1, 2023 · 1 comment

Comments

@zorba128
Copy link

zorba128 commented Dec 1, 2023

Why is this needed:

I'm looking for way to link table view with chart, so that table shows some details
on point currently selected.

Now crosshair is shared only among charts, and this feature would allow implementation
of nice interactive details views, such as:

  • show me some additional stats on point hovered
  • show log entries from time where cursor is
  • jump to some specific dashboard located at specific point in time

Maybe this could also become base for customizable graph tooltips (run some queries against given point rather than just displaying chart value).

What would you like to be added:

I believe simply exposing shared crosshair's timestamp as variable would allow implementation of such behaviors using existing features (utilize @ modifier in promql). It will require some manual coding (compared to some mechanism to auto-configure query range based on crosshair position), but it seems to already make things possible, while being easy to introduce and non-breaking.

[Add a brief description of what the feature or enhancement should do.]

Add {{crosshair_timestamp}} variable that would point at current crosshair position, or end of dashboard's time range.

@leeoniya
Copy link
Contributor

leeoniya commented Dec 1, 2023

see #78392

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

No branches or pull requests

3 participants