You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.
Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!
Trying the whole string as a datasource title and returning immediately makes valid segmented selectors silently choose the wrong rule. For example, if one datasource rule is literally titled Platform/HighErrorRate and a Grafana rule is Platform/HighErrorRate, the documented Platform/HighErrorRate selector resolves only to the datasource rule instead of reporting ambiguity. Collect candidates from both interpretations, deduplicate by key, and require an unambiguous result before returning.
Slash-containing datasource suggestions are not resolvable
For the newly supported datasource titles containing /, this “copyable” suggestion is not resolvable: prefixing datasource and group creates more than three segments, so parseNameForm rejects it. Return the exact key: selector for slash-containing titles so the suggested value can actually be used.
When /api/datasources succeeds but this probe returns 403 because datasource query permission is missing, the resulting error only says the API is “unusable” and does not identify the required permission. Add the permission to this probe-failure message so operators can act on the failure.
The new datasource log-resolution path is not exercised by the datasource tests: check_ds_test.go covers only single-step mode, while log_ds_test.go stops at childSchedule/timing derivation. Please add a recorder-mode check test that reads a header containing a datasource rule, re-fetches it through DatasourceDefinitions, and classifies its rule_key; otherwise the core watch → check --log workflow can regress without detection.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Things backed by Promehetus-like backends, e.g. Promehetus or VictoriaMetrics