Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discovery 403 (forbidden) error #2370

Closed
haiakab opened this issue Aug 22, 2023 Discussed in #2365 · 0 comments
Closed

discovery 403 (forbidden) error #2370

haiakab opened this issue Aug 22, 2023 Discussed in #2365 · 0 comments
Labels
duplicate All issues that are duplicated of others

Comments

@haiakab
Copy link

haiakab commented Aug 22, 2023

Discussed in #2365

Originally posted by haiakab August 16, 2023
Hi,
multiple subscriptions defined under our Azure account,
subscriptions have the same authentication (mode=UserAssignedManagedIdentity)
for all of the subscription, discovery is created as well - container is running, curl command returns Ok status (200).
scrapers were defined for the subscriptions with multiple metrics, but it's not working for some of the scrapers - getting 403 (forbidden) error for some of the subscriptions.
I see that this error is related to authentication- but the same auth is working for other subscriptions
what can be the issue?

error log:
Failed to scrape resource collection virtual-machine-landscape: Response status code does not indicate success: 403 (Forbidden).
System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Promitor.Agents.Scraper.Discovery.ResourceDiscoveryClient.SendGetRequestAsync(String uriPath) in /src/Promitor.Agents.Scraper/ResourceDiscoveryClient.cs:line 63
at Promitor.Agents.Scraper.Discovery.ResourceDiscoveryClient.GetAsync(String resourceDiscoveryGroupName) in /src/Promitor.Agents.Scraper/ResourceDiscoveryClient.cs:line 44
at Promitor.Agents.Scraper.Discovery.ResourceDiscoveryRepository.GetResourceDiscoveryGroupAsync(String resourceDiscoveryGroupName) in /src/Promitor.Agents.Scraper/ResourceDiscoveryRepository.cs:line 25
at Promitor.Agents.Scraper.Scheduling.ResourceDiscoveryGroupScrapingJob.ExecuteAsync(CancellationToken cancellationToken) in /src/Promitor.Agents.Scraper/ResourceDiscoveryGroupScrapingJob.cs:line 80

@tomkerkhove tomkerkhove closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2023
@tomkerkhove tomkerkhove added the duplicate All issues that are duplicated of others label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate All issues that are duplicated of others
Projects
None yet
Development

No branches or pull requests

2 participants