We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello!
Current behaviour
builder1 := dashboard.New( "dashboard 1", dashboard.Row( "Prometheus", row.WithGraph( // some data ), ), ) builder2 := dashboard.New( "dashboard 2", dashboard.Row( "Prometheus", row.WithGraph( // some data ), ), ) fmt.Printf("%d\n", builder1.Internal().Rows[0].Panels[0].ID) // 1 fmt.Printf("%d\n", builder2.Internal().Rows[0].Panels[0].ID) // 2
Expected behaviour Numbering is independent:
builder1 := dashboard.New( "dashboard 1", dashboard.Row( "Prometheus", row.WithGraph( // some data ), ), ) builder2 := dashboard.New( "dashboard 2", dashboard.Row( "Prometheus", row.WithGraph( // some data ), ), ) fmt.Printf("%d\n", builder1.Internal().Rows[0].Panels[0].ID) // 1 fmt.Printf("%d\n", builder2.Internal().Rows[0].Panels[0].ID) // 1
As far as I understand problem is here - https://github.com/K-Phoen/sdk/blob/master/row.go#L33 Possible solution is to extend MarshalJSON/MarshalIndentJSON and mutate ids there, starting them from 1
MarshalJSON
MarshalIndentJSON
The text was updated successfully, but these errors were encountered:
Does that cause any issue when publishing the dashboards to Grafana?
Sorry, something went wrong.
No branches or pull requests
Hello!
Current behaviour
Expected behaviour
Numbering is independent:
As far as I understand problem is here - https://github.com/K-Phoen/sdk/blob/master/row.go#L33
Possible solution is to extend
MarshalJSON
/MarshalIndentJSON
and mutate ids there, starting them from 1The text was updated successfully, but these errors were encountered: