Zumata / couchbase_exporter

Prometheus Exporter for Couchbase metrics, implemented using exporttools
0 stars 2 forks source link

BasicAuth on collectNodeStats #2

Closed lelvisl closed 5 years ago

lelvisl commented 7 years ago

On

func collectNodeStats(nodeURL string, s *NodeStat) error {

    req, err := http.NewRequest("GET", nodeURL+"/pools/default", nil)
...

You need

    req.SetBasicAuth(user, password)

And configure it from flags