-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Scraping resources regularly failing #1247
Comments
Yes, this is a nasty one but was already fixed in a next release! (see #1235) |
Will ship a new preview ASAP |
Awesome. Thanks for the fast reply. |
I'll close it since it's done but thanks for the report anyway! Feel free to re-open if next preview still shows this and sorry for the inconvenience! |
@tomkerkhove Do you have any plans to release the next preview in the next couple of days? |
I'm wrapping up changes to Helm chart and will then most likely ship preview 3 next week. Hope that's OK? |
@tomkerkhove That would perfectly fit. Thanks! |
In combination with the resource discovery agent we see multiple error like the following in the scraper agent logs:
[12:12:00 FTL] Failed to scrape resource collection vm-landscape: This instance has already started one or more requests. Properties can only be modified before sending the first request.
Btw. really nice feature this resource discovery agent
Expected Behavior
No such errors as it seems to break the fetching of the metrics.
Actual Behavior
[12:21:01 INF] Found value 100 for metric network_expressroutecircuits_arpavailability with aggregation interval 00:05:00
[12:21:01 INF] Found value 100 for metric network_expressroutecircuits_bgpavailability with aggregation interval 00:05:00
[12:21:01 INF] Metrics declaration is using spec version v1
[12:21:01 INF] Metrics declaration is using spec version v1
[12:21:08 INF] Request starting HTTP/1.1 GET http://172.17.0.3:80/metrics
[12:21:08 INF] Request finished in 0.2773ms 200 text/plain; version=0.0.4
[12:21:23 INF] Request starting HTTP/1.1 GET http://172.17.0.3:80/metrics
[12:21:23 INF] Request finished in 0.3357ms 200 text/plain; version=0.0.4
[12:21:38 INF] Request starting HTTP/1.1 GET http://172.17.0.3:80/metrics
[12:21:38 INF] Request finished in 0.3034ms 200 text/plain; version=0.0.4
[12:21:53 INF] Request starting HTTP/1.1 GET http://172.17.0.3:80/metrics
[12:21:53 INF] Request finished in 0.3079ms 200 text/plain; version=0.0.4
[12:22:00 INF] Scraping Azure Monitor - 08/27/2020 12:22:00 +00:00
[12:22:00 INF] Scraping network_expressroutecircuits_arpavailability for resource type Generic
[12:22:00 INF] Scraping resource collection vm-landscape - 08/27/2020 12:22:00 +00:00
[12:22:00 WRN] Failed to log HTTP dependency. Reason: This operation is not supported for a relative URI.
[12:22:00 FTL] Failed to scrape resource collection vm-landscape: This instance has already started one or more requests. Properties can only be modified before sending the first request.
System.InvalidOperationException: This instance has already started one or more requests. Properties can only be modified before sending the first request.
at System.Net.Http.HttpClient.CheckDisposedOrStarted()
at System.Net.Http.HttpClient.set_BaseAddress(Uri value)
at Promitor.Agents.Scraper.Discovery.ResourceDiscoveryClient.SendRequestToApiAsync(HttpRequestMessage request) in /src/Promitor.Agents.Scraper/ResourceDiscoveryClient.cs:line 72
at Promitor.Agents.Scraper.Discovery.ResourceDiscoveryClient.SendGetRequestAsync(String uri) in /src/Promitor.Agents.Scraper/ResourceDiscoveryClient.cs:line 57
at Promitor.Agents.Scraper.Discovery.ResourceDiscoveryClient.GetAsync(String resourceDiscoveryGroupName) in /src/Promitor.Agents.Scraper/ResourceDiscoveryClient.cs:line 40
at Promitor.Agents.Scraper.Discovery.ResourceDiscoveryRepository.GetResourceDiscoveryGroupAsync(String resourceDiscoveryGroupName) in /src/Promitor.Agents.Scraper/ResourceDiscoveryRepository.cs:line 23
at Promitor.Agents.Scraper.Scheduling.ResourceDiscoveryGroupScrapingJob.ExecuteAsync(CancellationToken cancellationToken) in /src/Promitor.Agents.Scraper/ResourceDiscoveryGroupScrapingJob.cs:line 80
[12:22:00 INF] Scraping Azure Monitor - 08/27/2020 12:22:00 +00:00
[12:22:00 INF] Scraping network_expressroutecircuits_bgpavailability for resource type Generic
[12:22:01 INF] Found value 100 for metric network_expressroutecircuits_arpavailability with aggregation interval 00:05:00
[12:22:01 INF] Metrics declaration is using spec version v1
[12:22:02 INF] Found value 100 for metric network_expressroutecircuits_bgpavailability with aggregation interval 00:05:00
[12:22:02 INF] Metrics declaration is using spec version v1
[12:22:08 INF] Request starting HTTP/1.1 GET http://172.17.0.3:80/metrics
[12:22:08 INF] Request finished in 0.3236ms 200 text/plain; version=0.0.4
[12:22:23 INF] Request starting HTTP/1.1 GET http://172.17.0.3:80/metrics
[12:22:23 INF] Request finished in 0.3189ms 200 text/plain; version=0.0.4
Steps to Reproduce the Problem
Configuration
Used scraping configuration
Used discovery configuration
Specifications
The text was updated successfully, but these errors were encountered: