[FEATURE] LogsTable: add Grafana migration script#622
Open
rickardsjp wants to merge 3 commits intoperses:mainfrom
Open
[FEATURE] LogsTable: add Grafana migration script#622rickardsjp wants to merge 3 commits intoperses:mainfrom
rickardsjp wants to merge 3 commits intoperses:mainfrom
Conversation
Signed-off-by: Jeremy Rickards <jeremy.rickards@sap.com>
Signed-off-by: Jeremy Rickards <jeremy.rickards@sap.com>
Signed-off-by: Jeremy Rickards <jeremy.rickards@sap.com>
e2346fa to
7a21c2c
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Add a Grafana migration script (
migrate.cue) for the LogsTable plugin, enabling automatic conversion of Grafanalogspanels to PersesLogsTablepanels viapercli migrate.The migration maps the following Grafana panel options to LogsTable spec fields:
options.wrapLogMessagetoallowWrapoptions.showTimetoshowTimeoptions.enableLogDetailstoenableDetails(defaults totrueif absent)Options without a LogsTable equivalent (
showLabels,sortOrder,dedupStrategy) are not migrated.Note
This PR covers panel migration only. Query migration for Loki targets is not included: The Prometheus query migration script currently matches any target with an
exprfield (including Loki targets) due to a greedy catch-all, andperclihas no way to prioritize a more specific match as far as I can tell.Screenshots
Checklist
[<catalog_entry>] <commit message>naming convention using one of thefollowing
catalog_entryvalues:FEATURE,ENHANCEMENT,BUGFIX,BREAKINGCHANGE,DOC,IGNORE.UI Changes