Search Poc: Add metrics (#95111)
This commit is contained in:
@@ -532,6 +532,7 @@ type Cfg struct {
|
||||
|
||||
// Unified Storage
|
||||
UnifiedStorage map[string]UnifiedStorageConfig
|
||||
IndexPath string
|
||||
}
|
||||
|
||||
type UnifiedStorageConfig struct {
|
||||
@@ -1338,8 +1339,9 @@ func (cfg *Cfg) parseINIFile(iniFile *ini.File) error {
|
||||
cfg.ScopesListScopesURL = scopesSection.Key("list_scopes_endpoint").MustString("")
|
||||
cfg.ScopesListDashboardsURL = scopesSection.Key("list_dashboards_endpoint").MustString("")
|
||||
|
||||
// read unifed storage config
|
||||
// unified storage config
|
||||
cfg.setUnifiedStorageConfig()
|
||||
cfg.setIndexPath()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -36,3 +36,7 @@ func (cfg *Cfg) setUnifiedStorageConfig() {
|
||||
}
|
||||
cfg.UnifiedStorage = storageConfig
|
||||
}
|
||||
|
||||
func (cfg *Cfg) setIndexPath() {
|
||||
cfg.IndexPath = cfg.Raw.Section("unified_storage").Key("index_path").String()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user