mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-15 09:45:55 +08:00
feat(7294): updated dashboard uri for cloud integrations (#8135)
This commit is contained in:
parent
c32dd9f17e
commit
6ed30318bd
@ -186,6 +186,14 @@ func HydrateFileUris(spec interface{}, fs embed.FS, basedir string) (interface{}
|
|||||||
if strings.HasPrefix(dashboardUri, "file://") {
|
if strings.HasPrefix(dashboardUri, "file://") {
|
||||||
dashboards[i] = strings.Replace(dashboardUri, ".json", "_dot.json", 1)
|
dashboards[i] = strings.Replace(dashboardUri, ".json", "_dot.json", 1)
|
||||||
}
|
}
|
||||||
|
} else if dashBoardMap, ok := dashboard.(map[string]interface{}); ok {
|
||||||
|
if dashboardUri, ok := dashBoardMap["definition"].(string); ok {
|
||||||
|
if strings.HasPrefix(dashboardUri, "file://") {
|
||||||
|
dashboardUri = strings.Replace(dashboardUri, ".json", "_dot.json", 1)
|
||||||
|
}
|
||||||
|
dashBoardMap["definition"] = dashboardUri
|
||||||
|
}
|
||||||
|
dashboards[i] = dashBoardMap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
v = dashboards
|
v = dashboards
|
||||||
|
Loading…
x
Reference in New Issue
Block a user