Skip to content

[BUGFIX] PrometheusTimeSeriesQuery: Grafana migration: don't match non-prom queries when type is set#632

Open
AntoineThebaud wants to merge 1 commit intomainfrom
antoinethebaud/prom-ts-query-migrate-fix
Open

[BUGFIX] PrometheusTimeSeriesQuery: Grafana migration: don't match non-prom queries when type is set#632
AntoineThebaud wants to merge 1 commit intomainfrom
antoinethebaud/prom-ts-query-migrate-fix

Conversation

@AntoineThebaud
Copy link
Copy Markdown
Contributor

@AntoineThebaud AntoineThebaud commented Apr 16, 2026

Description

Closes perses/perses#4013.

This PR reduces the "greediness" of the PrometheusTimeSeriesQuery migration logic by ensuring it's not matched when the datasource's type is explicitly set with another value than "prometheus". It doesn't change the current behavior when type is not set.

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

…n-prom queries when `type` is set

Signed-off-by: AntoineThebaud <antoine.thebaud@yahoo.fr>
@AntoineThebaud AntoineThebaud marked this pull request as ready for review April 16, 2026 21:29
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.

PrometheusTimeSeriesQuery: migration greedily matches non-Prometheus targets

1 participant