From 685aa5340eca9dd018bf88f31e2b21ae33031edf Mon Sep 17 00:00:00 2001 From: Takeshi Katano Date: Fri, 11 Oct 2024 04:15:33 +0800 Subject: [PATCH] feat: Add recommendation for Managed Grafana (#429) --- azure-resources/Dashboard/_index.md | 5 +++++ azure-resources/Dashboard/grafana/_index.md | 7 +++++++ .../6cd57b65-ef84-4088-9ada-c0d8de74c2f7.kql | 14 ++++++++++++++ .../Dashboard/grafana/recommendations.yaml | 19 +++++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 azure-resources/Dashboard/_index.md create mode 100644 azure-resources/Dashboard/grafana/_index.md create mode 100644 azure-resources/Dashboard/grafana/kql/6cd57b65-ef84-4088-9ada-c0d8de74c2f7.kql create mode 100644 azure-resources/Dashboard/grafana/recommendations.yaml diff --git a/azure-resources/Dashboard/_index.md b/azure-resources/Dashboard/_index.md new file mode 100644 index 00000000..00253f67 --- /dev/null +++ b/azure-resources/Dashboard/_index.md @@ -0,0 +1,5 @@ +--- +title: Dashboard +geekdocCollapseSection: true +geekdocHidden: false +--- diff --git a/azure-resources/Dashboard/grafana/_index.md b/azure-resources/Dashboard/grafana/_index.md new file mode 100644 index 00000000..ce121b42 --- /dev/null +++ b/azure-resources/Dashboard/grafana/_index.md @@ -0,0 +1,7 @@ +--- +title: grafana +geekdocCollapseSection: true +geekdocHidden: false +--- + +{{< azure-resources-recommendationlist name="azure-resources-recommendationlist" >}} diff --git a/azure-resources/Dashboard/grafana/kql/6cd57b65-ef84-4088-9ada-c0d8de74c2f7.kql b/azure-resources/Dashboard/grafana/kql/6cd57b65-ef84-4088-9ada-c0d8de74c2f7.kql new file mode 100644 index 00000000..ceb9926c --- /dev/null +++ b/azure-resources/Dashboard/grafana/kql/6cd57b65-ef84-4088-9ada-c0d8de74c2f7.kql @@ -0,0 +1,14 @@ +// Azure Resource Graph Query +// Provides a list of Azure Managed Grafana resources that do not zone redundancy enabled. +resources +| where type =~ "Microsoft.Dashboard/grafana" +| extend zoneRedundancy = properties.zoneRedundancy +| where zoneRedundancy !~ "Enabled" +| project + recommendationId = "6cd57b65-ef84-4088-9ada-c0d8de74c2f7", + name, + id, + tags, + param1 = strcat("location: ", location), + param2 = strcat("sku: ", sku.name), + param3 = strcat("zoneRedundancy: ", zoneRedundancy) diff --git a/azure-resources/Dashboard/grafana/recommendations.yaml b/azure-resources/Dashboard/grafana/recommendations.yaml new file mode 100644 index 00000000..be213a1a --- /dev/null +++ b/azure-resources/Dashboard/grafana/recommendations.yaml @@ -0,0 +1,19 @@ +- description: Enable zone redundancy in Managed Grafana + aprlGuid: 6cd57b65-ef84-4088-9ada-c0d8de74c2f7 + recommendationTypeId: null + recommendationControl: High Availability + recommendationImpact: Medium + recommendationResourceType: Microsoft.Dashboard/grafana + recommendationMetadataState: Active + longDescription: | + Managed Grafana Standard tier is hosted on a dedicated set of VMs to provide redundancy. With zone redundancy enabled, VMs are spread across availability zones (AZ). Related resources are also configured for AZ. Zone redundancy can only be enabled when creating the Azure Managed Grafana instance. + potentialBenefits: Enhanced Managed Grafana resilience to failures + pgVerified: false + publishedToLearn: false + automationAvailable: true + tags: null + learnMoreLink: + - name: Azure Managed Grafana service reliability + url: "https://learn.microsoft.com/azure/managed-grafana/high-availability" + - name: Enable zone redundancy in Azure Managed Grafana + url: "https://learn.microsoft.com/Azure/managed-grafana/how-to-enable-zone-redundancy"