Stackdriver / stackdriver-prometheus-sidecar

A sidecar for the Prometheus server that can send metrics to Stackdriver.
https://cloud.google.com/monitoring/kubernetes-engine/prometheus
Apache License 2.0
120 stars 43 forks source link

Error when installing the sidecar on local machine. #286

Open harpreetpaul opened 3 years ago

harpreetpaul commented 3 years ago

I am on go version - go1.16.5 windows/amd64

I am trying to follow the installation step mentioned in README

go get github.com/Stackdriver/stackdriver-prometheus-sidecar/...

During the installation I am getting following error. Any pointers to resolve this issue

github.com/Stackdriver/stackdriver-prometheus-sidecar/cmd/stackdriver-prometheus-sidecar imports
        go.opencensus.io/exporter/prometheus: cannot find module providing package go.opencensus.io/exporter/prometheus
github.com/Stackdriver/stackdriver-prometheus-sidecar/cmd/stackdriver-prometheus-sidecar imports
        github.com/prometheus/prometheus/config imports
        github.com/prometheus/prometheus/discovery/config imports
        github.com/prometheus/prometheus/discovery/azure imports
        github.com/Azure/azure-sdk-for-go/arm/compute: cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/compute
github.com/Stackdriver/stackdriver-prometheus-sidecar/cmd/stackdriver-prometheus-sidecar imports
        github.com/prometheus/prometheus/config imports
        github.com/prometheus/prometheus/discovery/config imports
        github.com/prometheus/prometheus/discovery/azure imports
        github.com/Azure/azure-sdk-for-go/arm/network: cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/network