监控 Azure Application Gateway

Instana 通过提供对您环境的端到端可视性,对您的 Azure Application Gateway 进行监控。 安装 Instana 主机代理后, Azure Application Gateway 传感器将自动安装并启用。 您可以在 Instana 用户界面中查看与 Azure Application Gateway 相关的基础设施指标。

如需了解更多信息,请参阅 Instana host agent

有关其他受支持的 Azure 服务的更多信息,请参阅 Azure

配置 Azure Application Gateway 传感器

要配置 Azure Application Gateway ,请执行以下步骤:

  1. 使用以下配置在代理配置文件 <agentinstall_dir>/etc/instana/configuration.yaml 中启用 Azure 服务:

    com.instana.plugin.azure:
      enabled: true
      subscription: "[Your-Subscription-Id]"
      tenant: "[Your-Tenant-Id]"
      principals:
        - id: "[Your-Service-Principal-Account-Id]"
          secret: "[Your-Service-Principal-Secret]"
    

    有关安装 Azure 代理的详细信息,请参阅 安装

  2. 请确保在代理配置文件中启用了 Azure Application Gateway<agentinstall_dir>/etc/instana/configuration.yaml传感器:

    com.instana.plugin.azure.applicationgateway:
    enabled: true
    

为服务过滤定义标签和资源组

您可以定义多个标签和资源组,这些标签和资源组之间用逗号隔开。 您必须将标记定义为键值对,并用冒号 : 分隔。 为简化配置,您必须定义标签和资源组,以便在发现时纳入或排除。 如果一个标记或资源组同时在包含列表和排除列表中定义,则排除列表优先。 如果要包含所有服务而不进行过滤,则必须不定义任何配置。

  • 要将带有标记的服务纳入发现,请使用以下配置:

    com.instana.plugin.azure.applicationgateway:
      include_tags: # Comma separated list of tags in key:value format (e.g. env:prod,env:staging)
    
  • 要从发现中排除带有标记的服务,请使用以下配置:

    com.instana.plugin.azure.applicationgateway:
      exclude_tags: # Comma separated list of tags in key:value format (e.g. env:dev,env:test)
    
  • 要将带有资源组的服务纳入发现,请使用以下配置:

    com.instana.plugin.azure.applicationgateway:
      include_resource_groups: # Comma separated list of resource groups (e.g. rg_prod,rg_staging)
    
  • 要从发现中排除带有资源组的服务,请使用以下配置:

    com.instana.plugin.azure.applicationgateway:
      exclude_resource_groups: # Comma separated list of resource groups (e.g. rg_dev,rg_test)
    
注意: 您可以在全局级别为所有 Azure 服务配置发现过滤。 当您为 Azure Application Gateway 定义过滤器时,全局过滤器将被覆盖。 有关 Azure 服务的全局发现过滤的更多信息,请参阅《 Azure 配置》。

禁用 Azure Application Gateway 传感器

若要禁用对 Azure Application Gateway 服务的监控,请使用以下配置:

com.instana.plugin.azure.applicationgateway:
  enabled: false

查看度量值

要查看指标,请完成以下步骤:

  1. 在 Instana 用户界面的导航菜单中,选择 “基础设施”
  2. 单击要查看指标的受监控主机。

您可以看到一个主机仪表板,上面有所有收集的指标和监控的流程。

要监控服务,Azure 每分钟收集一次指标。

配置数据

命名空间详细信息 描述
名称 Application Gateway的名称
资源组 Application Gateway的资源组
位置 Application Gateway的位置
Type 资源类型 Application Gateway
配置状态 Application Gateway的调配状态

绩效指标

指标 名称 单元 汇总 描述
吞吐量
字节 吞吐量 字节 平均 Application Gateway每秒服务的字节数
主机计数
计数 HealthyHostCount 计数 平均 健康探针确定为健康的后端数量
计数 UnhealthyHostCount 计数 平均 被健康探针判定为不健康的后端数量
百分比 HostCountUnhealthyPercentage 百分比 平均 不健康后端主机的百分比
请求
计数 TotalRequests 计数 总计 Application Gateway已服务的成功请求计数
计数 FailedRequests 计数 总计 因连接问题而失败的请求数
百分比 RequestsFailedPercentage 百分比 总计 Application Gateway 服务失败请求的百分比
连接
计数 CurrentConnections 计数 总计 客户端与 Application Gateway 的并发连接总数
计算单位
计数 ComputeUnits 计数 平均 消耗的处理器容量计数
字节
字节 BytesSent 字节 总计 Application Gateway从客户端接收的字节总数
字节 BytesReceived 字节 总计 Application Gateway从客户端接收的字节总数
Application Gateway总时间
持续时间 Application Gateway 总时间 毫秒 平均 处理请求和发送响应所需的总时间