Skip to content

Add Uid to the error log when reconciling dashboards #2143

@caiopapai

Description

@caiopapai

Is your feature request related to a problem? Please describe.

Add the UID to the log when there is an error to facilitate troubleshooting in an environment with multiple datasources.

Example of the error when a uid is not found when reconciling dashboards

ERROR GrafanaDatasourceReconciler error synchronizing datasources {"error": "[GET /datasources/uid/{uid}][404] getDataSourceByUidNotFound {\"message\":\"Data source not found\"}"}

Describe the solution you'd like
A clear and concise description of what you want to happen.

Add the uid to the struct.

Grafana Operator Dashboard Controller

Grafana Dashboard Response

Metadata

Metadata

Labels

good first issueGood for newcomerstriage/acceptedIndicates an issue or PR is ready to be actively worked on.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions