oracle collector done

This commit is contained in:
Ulric Qin 2022-04-18 23:54:10 +08:00
parent 3853f1c7c0
commit d333c7f554
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ tar zcvf categraf.tar.gz categraf conf
- []http_response
- []scrape
- []procstat
- []oracle
- [x]oracle
- []mysql
- []redis
- []...

View File

@ -131,7 +131,7 @@ func (o *Oracle) collectOnce(wg *sync.WaitGroup, ins OrclInstance, slist *list.S
if err := db.Ping(); err != nil {
slist.PushFront(inputs.NewSample("up", 0, tags))
log.Println("failed to ping oracle:", ins.Address, "error:", err)
log.Println("E! failed to ping oracle:", ins.Address, "error:", err)
} else {
slist.PushFront(inputs.NewSample("up", 1, tags))
}