glinuz / db2_exporter

Prometheus IBM DB2 exporter
MIT License
17 stars 7 forks source link

Monitoring DB2 on Windows #6

Closed tsoft-globalproject closed 3 years ago

tsoft-globalproject commented 3 years ago

Estimated, We are trying to implement this monitoring on a Windows server where DB2 is installed, after preparing the environment this message appears when compiling the main.go

C:\Users\db2admin\Desktop\workspace\src\db2_exporter-master>go build main.go main.go:14:2: no required module provides package github.com/BurntSushi/toml: working directory is not part of a module main.go:15:2: no required module provides package github.com/ibmdb/go_ibm_db: working directory is not part of a module main.go:16:2: no required module provides package github.com/prometheus/client_golang/prometheus: working directory is not part of a module main.go:17:2: no required module provides package github.com/prometheus/common/log: working directory is not part of a module

That could be, in linux it works perfect for us.

Greetings.

tsoft-globalproject commented 3 years ago

Hi,

Any comment or help please. Thanks.

glinuz commented 3 years ago

Sorry, I can't access the Internet for the past few days.

  1. Build with vendor (this repo,not github),not support go module
tsoft-globalproject commented 3 years ago

Estimated,

Thanks for answering, but we don't understand. What is not compatible with the go module? The DB runs on a windows server 2016 server, go version go1.16 windows / amd64.

Please your comments.

glinuz commented 3 years ago

Build with go version <1.11.

tsoft-globalproject commented 3 years ago

It works perfect. Thanks very much bro

glinuz commented 3 years ago

Can you share windows

ahuachacona commented 3 years ago

Hi, good day. Hope you're great.

@ConsultandJr Can you please give us more information on how you made it work? I need to monitor a DB2 on Windows too. I would really appreciate that. Thank since now. Greetings.