Azure compute_vm 指标集
编辑Azure compute_vm 指标集编辑
这是 azure 模块的 compute_vm 指标集。
此指标集允许用户从指定的虚拟机检索所有指标。
指标集特定配置说明编辑
-
refresh_list_interval
- 资源将在每次获取调用(
period
间隔)时检索,这意味着每次将执行许多 Azure REST 调用。 如果 Azure 用户将添加/删除与配置选项匹配的资源,这将非常有用,这样他们就不会被添加到列表中或从列表中删除。 为了减少每次检索资源时执行的 API 调用次数,用户可以配置此设置并确保不会频繁刷新资源列表。 这对于性能、速度和成本方面的因素也很有益(https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-request-limits)。 -
resources
- 这将包含所有用于识别资源和配置所需指标的选项
识别资源的配置选项编辑
-
resource_id
- ([]string) 资源的完全限定 ID,包括资源名称和资源类型。 格式为 /subscriptions/{guid}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}。 应该返回资源列表。
-
resource_group
- ([]string) 此选项将选择资源组内的所有虚拟机。
如果没有输入任何选项,则将考虑订阅内所有虚拟机。 对于每个指标,将检索分配的主要聚合。 设置了默认的不可配置时间粒度 5 分钟,因此建议用户配置 300 秒或其倍数的间隔。
要填充 VM Guest Metrics Overview 仪表板,用户必须为受监控的资源启用 Virtual Machine Guest 命名空间。 更多关于将来宾操作系统指标发送到 Azure Monitor 的内容,请访问 https://docs.microsoft.com/en-us/azure/azure-monitor/platform/collect-custom-metrics-guestos-resource-manager-vm。
有关指标集中每个字段的描述,请参阅 导出字段 部分。
以下是此指标集生成的示例文档
{ "@timestamp": "2017-10-12T08:05:34.853Z", "azure": { "compute_vm": { "cpu_credits_consumed": { "avg": 0.02 }, "cpu_credits_remaining": { "avg": 288 }, "disk_read_bytes": { "total": 3886082.75 }, "disk_read_operations_per_sec": { "avg": 0.0665 }, "disk_write_bytes": { "total": 14418893.74 }, "disk_write_operations_per_sec": { "avg": 1.636 }, "inbound_flows": { "avg": 97.2 }, "inbound_flows_maximum_creation_rate": { "avg": 264 }, "network_in": { "total": 1157992 }, "network_in_total": { "total": 1211091 }, "network_out": { "total": 1908414 }, "network_out_total": { "total": 2340880 }, "os_disk_bandwidth_consumed_percentage": { "avg": 0 }, "os_disk_iops_consumed_percentage": { "avg": 0 }, "os_disk_max_burst_bandwidth": { "avg": 170000000 }, "os_disk_max_burst_iops": { "avg": 3500 }, "os_disk_queue_depth": { "avg": 0 }, "os_disk_read_bytes_per_sec": { "avg": 12953.607 }, "os_disk_read_operations_per_sec": { "avg": 0.133 }, "os_disk_target_bandwidth": { "avg": 100000000 }, "os_disk_target_iops": { "avg": 500 }, "os_disk_used_burst_bps_credits_percentage": { "avg": 2 }, "os_disk_used_burst_io_credits_percentage": { "avg": 0 }, "os_disk_write_bytes_per_sec": { "avg": 48062.975 }, "os_disk_write_operations_per_sec": { "avg": 3.272 }, "outbound_flows": { "avg": 97.2 }, "outbound_flows_maximum_creation_rate": { "avg": 264 }, "percentage_cpu": { "avg": 2.548 }, "premium_os_disk_cache_read_hit": { "avg": 100 }, "premium_os_disk_cache_read_miss": { "avg": 0 }, "vm_cached_bandwidth_consumed_percentage": { "avg": 0 }, "vm_cached_iops_consumed_percentage": { "avg": 0 }, "vm_uncached_bandwidth_consumed_percentage": { "avg": 0 }, "vm_uncached_iops_consumed_percentage": { "avg": 0 } }, "namespace": "Microsoft.Compute/virtualMachines", "resource": { "group": "obs-test", "id": "/subscriptions/7657426d-c4c3-44ac-88a2-3b2cd59e6dba/resourceGroups/obs-test/providers/Microsoft.Compute/virtualMachines/perfmon-test", "name": "perfmon-test", "type": "Microsoft.Compute/virtualMachines" }, "subscription_id": "7657426d-c4c3-44ac-88a2-3b2cd59e6dba", "timegrain": "PT5M" }, "cloud": { "account": { "id": "7657426d-c4c3-44ac-88a2-3b2cd59e6dba" }, "instance": { "id": "23d5541a-ad41-4bef-b217-1d992c51ae07", "name": "perfmon-test" }, "machine": { "type": "Standard_B1ms" }, "provider": "azure", "region": "westeurope" }, "event": { "dataset": "azure.compute_vm", "duration": 115000, "module": "azure" }, "host": { "cpu": { "usage": 0.02548 }, "disk": { "read": { "bytes": 3886082.75 }, "write": { "bytes": 14418893.74 } }, "id": "23d5541a-ad41-4bef-b217-1d992c51ae07", "name": "perfmon-test", "network": { "egress": { "bytes": 2340880, "packets": 1908414 }, "ingress": { "bytes": 1211091, "packets": 1157992 } } }, "metricset": { "name": "compute_vm", "period": 10000 }, "service": { "type": "azure" } }