mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
lib/promscrape/discovery/consul: properly pass namespace to Consul watcher
Follow-up for 58a2989fe7
This commit is contained in:
parent
ac54f34f9e
commit
e8a5bb92b7
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