prometheus / statsd_exporter

StatsD to Prometheus metrics exporter
Apache License 2.0
925 stars 232 forks source link

I am trying to setup Airflow(1.10.10) with statsd-exporter but getting error github.com/prometheus/procfs/proc_snmp6.go:147:6: undefined: errors.Is #428

Closed deepaklearner closed 2 years ago

deepaklearner commented 2 years ago

Below is detailed error message:

deepak@LAPTOP:/c/Users/deepak$ go get github.com/prometheus/statsd_exporter
# github.com/prometheus/procfs
/home/deepak/go/src/github.com/prometheus/procfs/proc_snmp6.go:147:6: undefined: errors.Is
deepaklearner commented 2 years ago

I fixed the issue by setting up Path for go:

export GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin