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

Does updating from Polystat 1.2.11 to last version keeps old panels usable? #405

Closed
dequeee opened this issue Jul 22, 2024 · 5 comments
Closed
Labels
documentation errors or missing docs no stalebot This issue will be ignored by stalebot type/bug Something isn't working

Comments

@dequeee
Copy link

dequeee commented Jul 22, 2024

By manually updating, so downloading the package and importing it by hand into the plugin directory, replacing the old one, can create problems with panels made in the previous version of polystat? Or does it automatically convert the old panels and they will be accessible immediately?

Are there other ways to import old panels into the new version? Maybe copy the JSON panel manually to a dashboard in the new version?

Or does it not work because of incompatibilities between versions?

Best regards!

@briangann
Copy link
Collaborator

the migration is automatic, i would backup your dashboard just in case you run into an issue

@briangann briangann added the documentation errors or missing docs label Aug 11, 2024
@birko999
Copy link

birko999 commented Aug 13, 2024

I've noticed one issue during upgrade from v1.2.11 to v2.1.8
I'm using "Default Clickthrough" with combination of "Global Aliasing - Regex Pattern". The issue is I need to filter out string prefix, which is inside polygon and at the same time I need to use this string without prefix in URL, which is used as click through to another dashboard.

v1.2.11 - prefix "int_utilizationin" is successfully filtered out from URL
image

v2.1.8 - prefix "int_utilizationin" remains in URL
image

I'm using placeholder ${__cell_name} inside URL to reference the field value

@briangann briangann added type/bug Something isn't working no stalebot This issue will be ignored by stalebot labels Aug 13, 2024
@briangann
Copy link
Collaborator

that appears to be a regression, will repro and get it fixed

@birko999
Copy link

Hello @briangann
Have you got any update on this issue, please?
Thank you very much

@dequeee
Copy link
Author

dequeee commented Sep 18, 2024

There are few things to edit after upgrading.

Grafana 11.1 only load polystat 2.0.0 >, so you have to upgrade also polystat panel.

Upgrading from panel polystat version 1.12.x to 2.1.x requires few changes in complex dashboards.

Upgrading a panel with complex overrides and composites requires to add / at the start and at the bottom of the metric, which before wasn't required.

So this problem with metrics can lead to increasing the number of cells. which also lead to an error:

Cannot read properties of undefined (reading 'x')

if the number of cells excedes the limit configured in the layout section.

Metrics changes also afflicts cells colors. i found out that now sometimes value mapping conflicts with overrides. so i used value mapping color setting for the cells color configuration instead of overrides.

I hope this could be useful.

@dequeee dequeee closed this as completed Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation errors or missing docs no stalebot This issue will be ignored by stalebot type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants