recover oracle.input
This commit is contained in:
parent
f42daec17a
commit
8a156e86f6
|
@ -48,8 +48,9 @@ type MetricConfig struct {
|
|||
|
||||
type Oracle struct {
|
||||
config.Interval
|
||||
Instances []OrclInstance `toml:"instances"`
|
||||
Metrics []MetricConfig `toml:"metrics"`
|
||||
Instances []OrclInstance `toml:"instances"`
|
||||
Metrics []MetricConfig `toml:"metrics"`
|
||||
|
||||
dbconnpool map[string]*sqlx.DB // key: instance
|
||||
Counter uint64
|
||||
wg sync.WaitGroup
|
||||
|
|
|
@ -22,7 +22,7 @@ func LoadConfigs(configDir string, configPtr interface{}) error {
|
|||
|
||||
for _, fpath := range files {
|
||||
// logs.toml 单独解析
|
||||
if fpath == "logs.toml" {
|
||||
if fpath == "logs.toml" || fpath == "logs.yaml" || fpath == "logs.json" {
|
||||
continue
|
||||
}
|
||||
if strings.HasSuffix(fpath, "toml") {
|
||||
|
|
Loading…
Reference in New Issue