Skip to content

Commit

Permalink
fix: oracle plugin bug fix (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanxiao1990 committed Sep 28, 2022
1 parent 35c4e81 commit 8ef814f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inputs/oracle/oracle_linux_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ func (o *Oracle) Drop() {
func (o *Oracle) GetInstances() []inputs.Instance {
ret := make([]inputs.Instance, len(o.Instances))
for i := 0; i < len(o.Instances); i++ {
o.Instances[i].Metrics = append(o.Instances[i].Metrics, o.Metrics...)
if len(o.Instances[i].Metrics) < len(o.Metrics) {
o.Instances[i].Metrics = append(o.Instances[i].Metrics, o.Metrics...)
}
ret[i] = o.Instances[i]
}
return ret
Expand Down

0 comments on commit 8ef814f

Please sign in to comment.