Skip to content

[FEATURE] LogsTable: add Grafana migration script#622

Open
rickardsjp wants to merge 3 commits intoperses:mainfrom
rickardsjp:migrate-logstable
Open

[FEATURE] LogsTable: add Grafana migration script#622
rickardsjp wants to merge 3 commits intoperses:mainfrom
rickardsjp:migrate-logstable

Conversation

@rickardsjp
Copy link
Copy Markdown
Contributor

Description

Add a Grafana migration script (migrate.cue) for the LogsTable plugin, enabling automatic conversion of Grafana logs panels to Perses LogsTable panels via percli migrate.

The migration maps the following Grafana panel options to LogsTable spec fields:

  • options.wrapLogMessage to allowWrap
  • options.showTime to showTime
  • options.enableLogDetails to enableDetails (defaults to true if 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 expr field (including Loki targets) due to a greedy catch-all, and percli has no way to prioritize a more specific match as far as I can tell.

Screenshots

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.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.

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>
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.

1 participant