Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
qorus
prometheus
Commits
d78e9e97
Unverified
Commit
d78e9e97
authored
Apr 19, 2021
by
Julien Pivotto
Committed by
GitHub
Apr 19, 2021
Browse files
Merge pull request #8729 from code1305/azure-sd-errfix
return right error if any target creation fails
parents
80545bfb
9c705ffd
Changes
1
Hide whitespace changes
Inline
Side-by-side
discovery/azure/azure.go
View file @
d78e9e97
...
...
@@ -373,7 +373,7 @@ func (d *Discovery) refresh(ctx context.Context) ([]*targetgroup.Group, error) {
var
tg
targetgroup
.
Group
for
tgt
:=
range
ch
{
if
tgt
.
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"unable to complete Azure service discovery"
)
return
nil
,
errors
.
Wrap
(
tgt
.
err
,
"unable to complete Azure service discovery"
)
}
if
tgt
.
labelSet
!=
nil
{
tg
.
Targets
=
append
(
tg
.
Targets
,
tgt
.
labelSet
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment