prometheus_oracle_exporter
prometheus_oracle_exporter copied to clipboard
Oracle exporter installation issues
Hi,
I have prometheus,grafana setup on Kubernetes and I am trying to install this exporter on an oracle server. I am getting the below error message:-
/usr/local/go/src/github.com/prometheus/client_golang/prometheus/summary.go:25:2: cannot find package "github.com/beorn7/perks/quantile" in any of: /usr/local/go/src/vendor/github.com/beorn7/perks/quantile (vendor tree) /usr/local/go/src/github.com/beorn7/perks/quantile (from $GOROOT) /home/oracle/go/src/github.com/beorn7/perks/quantile (from $GOPATH) /usr/local/go/src/github.com/prometheus/client_golang/prometheus/desc.go:22:2: cannot find package "github.com/cespare/xxhash/v2" in any of: /usr/local/go/src/vendor/github.com/cespare/xxhash/v2 (vendor tree) /usr/local/go/src/github.com/cespare/xxhash/v2 (from $GOROOT) /home/oracle/go/src/github.com/cespare/xxhash/v2 (from $GOPATH) /usr/local/go/src/github.com/prometheus/client_golang/prometheus/desc.go:24:2: cannot find package "github.com/golang/protobuf/proto" in any of: /usr/local/go/src/vendor/github.com/golang/protobuf/proto (vendor tree) /usr/local/go/src/github.com/golang/protobuf/proto (from $GOROOT) /home/oracle/go/src/github.com/golang/protobuf/proto (from $GOPATH) /usr/local/go/src/github.com/prometheus/client_golang/prometheus/value.go:24:2: cannot find package "github.com/golang/protobuf/ptypes" in any of: /usr/local/go/src/vendor/github.com/golang/protobuf/ptypes (vendor tree) /usr/local/go/src/github.com/golang/protobuf/ptypes (from $GOROOT) /home/oracle/go/src/github.com/golang/protobuf/ptypes (from $GOPATH) /usr/local/go/src/github.com/prometheus/client_golang/prometheus/internal/metric.go:19:2: cannot find package "github.com/prometheus/client_model/go" in any of: /usr/local/go/src/vendor/github.com/prometheus/client_model/go (vendor tree) /usr/local/go/src/github.com/prometheus/client_model/go (from $GOROOT) /home/oracle/go/src/github.com/prometheus/client_model/go (from $GOPATH) /usr/local/go/src/github.com/prometheus/client_golang/prometheus/registry.go:31:2: cannot find package "github.com/prometheus/common/expfmt" in any of: /usr/local/go/src/vendor/github.com/prometheus/common/expfmt (vendor tree) /usr/local/go/src/github.com/prometheus/common/expfmt (from $GOROOT) /home/oracle/go/src/github.com/prometheus/common/expfmt (from $GOPATH) go/go/src/oracle_exporter/main.go:14:2: cannot find package "github.com/prometheus/common/log" in any of: /usr/local/go/src/github.com/prometheus/common/log (from $GOROOT) /home/oracle/go/src/github.com/prometheus/common/log (from $GOPATH) /usr/local/go/src/github.com/prometheus/client_golang/prometheus/desc.go:25:2: cannot find package "github.com/prometheus/common/model" in any of: /usr/local/go/src/vendor/github.com/prometheus/common/model (vendor tree) /usr/local/go/src/github.com/prometheus/common/model (from $GOROOT) /home/oracle/go/src/github.com/prometheus/common/model (from $GOPATH) /usr/local/go/src/github.com/prometheus/client_golang/prometheus/process_collector_other.go:19:2: cannot find package "github.com/prometheus/procfs" in any of: /usr/local/go/src/vendor/github.com/prometheus/procfs (vendor tree) /usr/local/go/src/github.com/prometheus/procfs (from $GOROOT) /home/oracle/go/src/github.com/prometheus/procfs (from $GOPATH)
Earlier I was getting the package not found errors for the below packages which are mentioned as part of the main.go file.
_ "github.com/mattn/go-oci8"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/log"
so I did manually downloaded the packages and setup the gopath and copied the packages in the respective locations, still I started getting these new errors.
Can you please help me get the exact installation steps required to setup the oracle exporter.
+1