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

Ad hoc variables: add support for detected_field/.../values #848

Merged
merged 12 commits into from
Oct 31, 2024

Conversation

gtk-grafana
Copy link
Contributor

@gtk-grafana gtk-grafana commented Oct 22, 2024

Provides support for new detected_field/.../values endpoint in Loki 3.3.0 and Grafana 11.4 with graceful fallback support for older versions of both. Functionality should remain unchanged if the required versions are not met, so we should be able to release this safely before the dependencies.

Requires Grafana 11.4:

@gtk-grafana gtk-grafana self-assigned this Oct 29, 2024
@gtk-grafana gtk-grafana added the enhancement New feature or request label Oct 29, 2024
@matyax
Copy link
Contributor

matyax commented Oct 29, 2024

I think one way to degrade gracefully will be to catch the error and resolve to an empty array, so we avoid this:

imagen

@gtk-grafana gtk-grafana added this to the 1.0.3 milestone Oct 30, 2024
@gtk-grafana gtk-grafana marked this pull request as ready for review October 30, 2024 15:41
@gtk-grafana gtk-grafana requested a review from a team as a code owner October 30, 2024 15:41
@matyax
Copy link
Contributor

matyax commented Oct 31, 2024

Looking soon.

Copy link
Contributor

@matyax matyax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-tested it and looks great! Amazing work.

@gtk-grafana gtk-grafana enabled auto-merge (squash) October 31, 2024 19:31
@gtk-grafana gtk-grafana merged commit 7174a4c into main Oct 31, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants