mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat: add adaptive logs under cost management->logs nav (#89875)
Co-authored-by: Xiyu Chen <xiyu.chen@grafana.com>
This commit is contained in:
parent
3ca4fb1a8f
commit
48552a578a
@ -140,6 +140,7 @@ func (root *NavTreeRoot) ApplyCostManagementIA() {
|
|||||||
orgAdminNode := root.FindById(NavIDCfg)
|
orgAdminNode := root.FindById(NavIDCfg)
|
||||||
var costManagementApp *NavLink
|
var costManagementApp *NavLink
|
||||||
var adaptiveMetricsApp *NavLink
|
var adaptiveMetricsApp *NavLink
|
||||||
|
var adaptiveLogsApp *NavLink
|
||||||
var attributionsApp *NavLink
|
var attributionsApp *NavLink
|
||||||
var logVolumeExplorerApp *NavLink
|
var logVolumeExplorerApp *NavLink
|
||||||
|
|
||||||
@ -151,6 +152,8 @@ func (root *NavTreeRoot) ApplyCostManagementIA() {
|
|||||||
costManagementApp = element
|
costManagementApp = element
|
||||||
case "plugin-page-grafana-adaptive-metrics-app":
|
case "plugin-page-grafana-adaptive-metrics-app":
|
||||||
adaptiveMetricsApp = element
|
adaptiveMetricsApp = element
|
||||||
|
case "plugin-page-grafana-adaptivelogs-app":
|
||||||
|
adaptiveLogsApp = element
|
||||||
case "plugin-page-grafana-attributions-app":
|
case "plugin-page-grafana-attributions-app":
|
||||||
attributionsApp = element
|
attributionsApp = element
|
||||||
case "plugin-page-grafana-logvolumeexplorer-app":
|
case "plugin-page-grafana-logvolumeexplorer-app":
|
||||||
@ -173,6 +176,9 @@ func (root *NavTreeRoot) ApplyCostManagementIA() {
|
|||||||
|
|
||||||
costManagementLogsNode := FindByURL(costManagementApp.Children, "/a/grafana-costmanagementui-app/logs")
|
costManagementLogsNode := FindByURL(costManagementApp.Children, "/a/grafana-costmanagementui-app/logs")
|
||||||
if costManagementLogsNode != nil {
|
if costManagementLogsNode != nil {
|
||||||
|
if adaptiveLogsApp != nil {
|
||||||
|
costManagementLogsNode.Children = append(costManagementLogsNode.Children, adaptiveLogsApp)
|
||||||
|
}
|
||||||
if logVolumeExplorerApp != nil {
|
if logVolumeExplorerApp != nil {
|
||||||
costManagementLogsNode.Children = append(costManagementLogsNode.Children, logVolumeExplorerApp)
|
costManagementLogsNode.Children = append(costManagementLogsNode.Children, logVolumeExplorerApp)
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,7 @@ func (s *ServiceImpl) readNavigationSettings() {
|
|||||||
"grafana-cloud-link-app": {SectionID: navtree.NavIDCfgPlugins, SortWeight: 3},
|
"grafana-cloud-link-app": {SectionID: navtree.NavIDCfgPlugins, SortWeight: 3},
|
||||||
"grafana-costmanagementui-app": {SectionID: navtree.NavIDCfg, Text: "Cost management"},
|
"grafana-costmanagementui-app": {SectionID: navtree.NavIDCfg, Text: "Cost management"},
|
||||||
"grafana-adaptive-metrics-app": {SectionID: navtree.NavIDCfg, Text: "Adaptive Metrics"},
|
"grafana-adaptive-metrics-app": {SectionID: navtree.NavIDCfg, Text: "Adaptive Metrics"},
|
||||||
|
"grafana-adaptivelogs-app": {SectionID: navtree.NavIDCfg, Text: "Adaptive Logs"},
|
||||||
"grafana-attributions-app": {SectionID: navtree.NavIDCfg, Text: "Attributions"},
|
"grafana-attributions-app": {SectionID: navtree.NavIDCfg, Text: "Attributions"},
|
||||||
"grafana-logvolumeexplorer-app": {SectionID: navtree.NavIDCfg, Text: "Log Volume Explorer"},
|
"grafana-logvolumeexplorer-app": {SectionID: navtree.NavIDCfg, Text: "Log Volume Explorer"},
|
||||||
"grafana-easystart-app": {SectionID: navtree.NavIDRoot, SortWeight: navtree.WeightApps + 1, Text: "Connections", Icon: "adjust-circle"},
|
"grafana-easystart-app": {SectionID: navtree.NavIDRoot, SortWeight: navtree.WeightApps + 1, Text: "Connections", Icon: "adjust-circle"},
|
||||||
|
Loading…
Reference in New Issue
Block a user