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

Azure Monitor: Fix empty Logs response for Alerting #56378

Merged
merged 1 commit into from Oct 5, 2022
Merged

Conversation

andresmgot
Copy link
Contributor

What this PR does / why we need it:

Unified Alerting require empty frames to include no data field so I modified Azure Monitor Logs to check if there are rows in the response to return an empty frame.

Which issue(s) this PR fixes:

Fixes #48072

Special notes for your reviewer:

ResponseTableToFrame is being used both in Azure Monitor Logs and Azure Resource Graph but the signature was dependendant of a Logs response so I refactored it a bit to be generic.

@andresmgot andresmgot requested a review from a team as a code owner October 5, 2022 10:39
@andresmgot andresmgot requested review from aangelisc and yaelleC and removed request for a team October 5, 2022 10:39
@grafanabot grafanabot added datasource/Azure Azure Monitor Datasource area/backend labels Oct 5, 2022
@andresmgot andresmgot added add to changelog backport v9.1.x Bot will automatically open backport PR backport v9.2.x Mark PR for automatic backport to v9.2.x labels Oct 5, 2022
@andresmgot andresmgot changed the title Azure Monitor: Adapt empty Logs response Azure Monitor: Adapt empty Logs response for Alerting Oct 5, 2022
@andresmgot andresmgot changed the title Azure Monitor: Adapt empty Logs response for Alerting Azure Monitor: Fix empty Logs response for Alerting Oct 5, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

Backend code coverage report for PR #56378

Plugin Main PR Difference
azuremonitor 68.6% 68.6% 0%

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

Frontend code coverage report for PR #56378
No changes

Copy link
Contributor

@aangelisc aangelisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌🏽

@andresmgot andresmgot added this to the 9.1.8 milestone Oct 5, 2022
@andresmgot andresmgot merged commit 8594e64 into main Oct 5, 2022
@andresmgot andresmgot deleted the AzLogsEmpty branch October 5, 2022 13:29
grafanabot pushed a commit that referenced this pull request Oct 5, 2022
grafanabot pushed a commit that referenced this pull request Oct 5, 2022
andresmgot added a commit that referenced this pull request Oct 5, 2022
(cherry picked from commit 8594e64)

Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com>
andresmgot added a commit that referenced this pull request Oct 5, 2022
(cherry picked from commit 8594e64)

Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/backend backport v9.1.x Bot will automatically open backport PR backport v9.2.x Mark PR for automatic backport to v9.2.x datasource/Azure Azure Monitor Datasource enterprise-ok
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unified Alerting: failed to execute conditions: no float64 value column found in frame - Azure Log Analytics
3 participants