标签: azure-monitoring

使用 ARM 模板成功创建 Azure 日志警报规则,但未出现在门户中

我已经创建了一些用于部署 Azure 指标警报规则的 ARM 模板,但我现在需要部署日志警报规则(即基于 Application Insights 查询而不是平台指标的规则)。

我已按照此处的示例编写了模板脚本(这表明我需要创建类型为 的资源Microsoft.Insights/scheduledQueryRules),并使用 Azure 门户的模板部署服务进行部署,如此处所述

Azure 报告部署成功,活动日志向我提供部署结果,包括我的新资源的 ID,例如/subscriptions/[subscription-id]/resourcegroups/[alerts-resource-group]/providers/Microsoft.Insights/scheduledQueryRules/Custom errors spike alert

但是,当我导航到订阅 [subscription-id] 中的“监视器”边栏选项卡并按资源组 [alerts-resource-group] 进行筛选时,我没有看到新警报。

作为一项健全性检查,我使用针对相同 App Insights 资源的相同流程创建了一个指标警报,并且该警报确实显示在“监视器”边栏选项卡中。

我想我的问题是,我是否误解了基于日志的警报规则?例如,Azure“资源”类型是否Microsoft.Insights/scheduledQueryRules等同于“监视/警报/管理警报规则”中信号类型“日志搜索”的警报规则?我确信我的模板是正确的,因为它通过了验证并成功完成。但我对警报规则的结局感到困惑!

我应该提到的一件事是,我在与 App Insights 实例本身不同的资源组中创建警报规则,但指标警报也是如此,因此假设这并不重要。

azure azure-monitoring azure-devops azure-rm-template

3
推荐指数
1
解决办法
1484
查看次数

如何在 terraform 中的 AKS 群集资源创建的虚拟机规模集或负载均衡器上启用诊断日志?

以下 terraform 资源创建具有虚拟机规模集 (VMSS) 和负载均衡器 (LB) 资源的 AKS 群集。oms_agent目前,通过在 下添加部分,可以在集群资源上启用诊断日志addon_profile

但是,文档没有提及是否有一种方法可以对 . 创建的 VMSSdefault_node_pool和 . 创建的 LB启用诊断network_profile。这可以通过 terraform 实现吗?

或者,集群创建的 VMSS 和 LB 是否有固定的命名方案?如果存在固定的命名方案,此问题的一种解决方案是简单地在正确的资源组中查找具有这些预定义名称的资源来创建日志分析解决方案。

Terraform 文档:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster# default_node_pool https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#load_balancer_profile

    resource "azurerm_kubernetes_cluster" "aks-cluster" {
      resource_group_name             = azurerm_resource_group.aks-rg.name
      location                        = azurerm_resource_group.aks-rg.location
      name                            = "my-cluster"
      dns_prefix                      = "my-cluster-aks"
      kubernetes_version              = "1.18.8"
      private_cluster_enabled         = false
      node_resource_group             = "MC_my-cluster-aks"
      api_server_authorized_ip_ranges = [var.authorized_ip]
      service_principal {
        client_id     = var.sp_client_id
        client_secret = var.client_secret
      }
      default_node_pool {
        name                = "default" …
Run Code Online (Sandbox Code Playgroud)

azure azure-monitoring terraform azure-aks

3
推荐指数
1
解决办法
2450
查看次数

检测到组成员身份更改时的 Azure Active Directory 通知

我被要求准备在特定 Azure AD 组中添加或删除用户时发送用户通知的解决方案。我正在考虑 Azure Monitor 服务和警报创建,但我不确定其合适的服务。我不期待完整的解决方案,只期待方向,我可以使用什么 Azure 服务来完成我的任务。

azure azure-active-directory azure-monitoring azure-devops

2
推荐指数
1
解决办法
2246
查看次数

如何使用适用于 Azure 服务总线的 .NET SDK 在 C# 中从服务总线主题及其订阅中读取死信计数?

Azure Monitor 为服务总线提供了许多指标,例如 \xe2\x80\x9c 传入、传出、活动\xe2\x80\x9d 消息\n服务总线矩阵为您提供消息总数以及何时尝试查看该指标的详细信息 \ xe2\x80\x9cDeadlettedMessages\xe2\x80\x9d,我可以通过 \xe2\x80\x9cEntityName\xe2\x80\x9d 获取计数,它是队列或主题,但不是订阅级别指标。

\n

在从主题及其订阅中获取所有死信和其他消息计数时,我遇到了挑战。\n我花了近 4-5 小时来解决上述问题。

\n

我希望,下面的答案可能对监控服务总线有所帮助

\n

c# azure-monitoring azure-functions asp.net-core-3.1

2
推荐指数
1
解决办法
1717
查看次数

在 Kusto 查询中将列名称作为参数传递

我需要将列名动态传递到查询中。虽然以下在语法上是正确的,但它并没有真正执行特定列上的条件。

这在 Kusto 中可能吗?

let foo = (duration: timespan, column:string) {
    SigninLogs
    | where TimeGenerated >= ago(duration) 
    | summarize totalPerCol = count() by ['column']
};
//foo('requests')<-- does not work
//foo('user') <-- does not work
//foo('ip')<-- does not work
Run Code Online (Sandbox Code Playgroud)

azure azure-monitoring kql azure-data-explorer

2
推荐指数
1
解决办法
3542
查看次数

Azure Monitor(Application Insights)日志查询图表 - Y 轴上有什么?

如何选择 Application Insights(Azure Monitor?)图表中 Y 轴显示的内容? 在此输入图像描述

我在 Application Insights 中有自定义事件,并且想要使用自定义指标构建时间序列图表。

但 Y 轴上显示的是 itemCount,而不是我的指标。如何选择Y轴的指标?

azure azure-monitoring azure-application-insights

1
推荐指数
1
解决办法
2275
查看次数

应该使用哪个 API 来查询 Application Insights 跟踪日志?

我们的 ASP.NET Core 应用将跟踪消息记录到 App Insights。我们需要能够查询它们并通过一些自定义维度进行过滤。但是,我找到了 3 个 API,但不确定要使用哪一个:

  1. 应用洞察 REST API
  2. Azure 日志分析 REST API
  3. Azure 数据资源管理器 .NET SDK(预览版)

首先,我不明白这些选项之间的关系。我认为 App Insights 将其数据保存到 Log Analytics;但如果是这种情况,我希望只能通过 Log Analytics 进行查询。

无论如何,我只需要知道哪个最好用,我希望文档更清晰。我的直觉是使用 App Insights API,因为我们只需要来自 App Insights 的数据,而不需要来自其他来源的数据。

azure-monitoring azure-application-insights azure-log-analytics azure-data-explorer

1
推荐指数
1
解决办法
226
查看次数

Azure Monitor doesn't list all my subscriptions when adding new resource alert

I am in Azure Monitor, I select the subscription filter to view my existing alerts. I then click add new alert, select the scope / resources I want to create the rule for, but I am not seeing all my subscriptions in the drop down.

我是否缺少权限?我已经拥有缺少的订阅的“贡献者”角色。

Azure 监视器屏幕截图

azure azure-monitoring azure-monitor

1
推荐指数
1
解决办法
697
查看次数

Azure Kubernetes 服务指标与 Prometheus 指标

我们是否对 Azure Kubernetes 服务和 Prometheus 中可用的指标列表进行了任何比较,只是想知道通过启用 prometheus 抓取可以获取什么样的额外指标。以下链接中没有可用的其他信息:

https://azure.microsoft.com/en-in/updates/azure-monitor-for-containers-prometheus-support-for-aks-engines/

谢谢!

azure azure-monitoring prometheus azure-aks

0
推荐指数
1
解决办法
1082
查看次数