mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
lib/promscrape/discovery/consul: properly pass namespace to Consul watcher
Follow-up for 58a2989fe7
This commit is contained in:
parent
4adf6c9766
commit
f10fa0d1d7
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ func newAPIConfig(sdc *SDConfig, baseDir string) (*apiConfig, error) {
|
|||
namespace = os.Getenv("CONSUL_NAMESPACE")
|
||||
}
|
||||
|
||||
cw := newConsulWatcher(client, sdc, dc, sdc.Namespace)
|
||||
cw := newConsulWatcher(client, sdc, dc, namespace)
|
||||
cfg := &apiConfig{
|
||||
tagSeparator: tagSeparator,
|
||||
consulWatcher: cw,
|
||||
|
|
Loading…
Reference in a new issue