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

Add host inventory metrics to azure compute_vm metricset #20641

Merged
merged 6 commits into from
Aug 20, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4437,6 +4437,75 @@ azure module



[float]
=== host




*`host.cpu.pct`*::
+
--
Percent CPU used. This value is normalized by the number of CPU cores and it ranges from 0 to 100%.

type: scaled_float

--

*`host.network.in.bytes`*::
+
--
The number of bytes received on all network interfaces by the host in a given period of time.

type: scaled_float

--

*`host.network.out.bytes`*::
+
--
The number of bytes sent out on all network interfaces by the host in a given period of time.

type: scaled_float

--

*`host.network.in.packets`*::
+
--
The number of packets received on all network interfaces by the host in a given period of time.

type: scaled_float

--

*`host.network.out.packets`*::
+
--
The number of packets sent out on all network interfaces by the host in a given period of time.

type: scaled_float

--

*`host.disk.read.bytes`*::
+
--
The total number of bytes read successfully in a given period of time.

type: scaled_float

--

*`host.disk.write.bytes`*::
+
--
The total number of bytes write successfully in a given period of time.

type: scaled_float

--

[float]
=== azure

Expand Down
25 changes: 25 additions & 0 deletions x-pack/metricbeat/module/azure/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,31 @@
azure module
release: ga
fields:
- name: host
type: group
description: >
fields:
- name: cpu.pct
type: scaled_float
description: Percent CPU used. This value is normalized by the number of CPU cores and it ranges from 0 to 100%.
- name: network.in.bytes
type: scaled_float
description: The number of bytes received on all network interfaces by the host in a given period of time.
- name: network.out.bytes
type: scaled_float
description: The number of bytes sent out on all network interfaces by the host in a given period of time.
- name: network.in.packets
type: scaled_float
description: The number of packets received on all network interfaces by the host in a given period of time.
- name: network.out.packets
type: scaled_float
description: The number of packets sent out on all network interfaces by the host in a given period of time.
- name: disk.read.bytes
type: scaled_float
description: The total number of bytes read successfully in a given period of time.
- name: disk.write.bytes
type: scaled_float
description: The total number of bytes write successfully in a given period of time.
- name: azure
type: group
description: >
Expand Down
215 changes: 118 additions & 97 deletions x-pack/metricbeat/module/azure/compute_vm/_meta/data.json
Original file line number Diff line number Diff line change
@@ -1,131 +1,152 @@
{
"@timestamp":"2020-08-05T10:36:00.000Z",
"cloud":{
"provider":"azure",
"region":"westeurope",
"instance":{
"id":"/subscriptions/fd675b6f-b5e5-426e-ac45-d1f876d0ffa6/resourceGroups/obs-infrastructure/providers/Microsoft.Compute/virtualMachines/obstestmemleak",
"name":"obstestmemleak"
},
"machine":{
"type":"Standard_B2ms"
}
},
"event":{
"dataset":"azure.compute_vm",
"module":"azure",
"duration":5364973100
},
"metricset":{
"name":"compute_vm",
"period":300000
},
"azure":{
"timegrain":"PT5M",
"resource":{
"type":"Microsoft.Compute/virtualMachines",
"group":"obs-infrastructure",
"tags":{
"vmtest":"value1, value 2",
"vmtest1":"value3"
}
},
"subscription_id":"fd675b6f-b5e5-426e-ac45-d1f876d0ffa6",
"namespace":"Microsoft.Compute/virtualMachines",
"compute_vm":{
"outbound_flows":{
"avg":291.2
"@timestamp": "2017-10-12T08:05:34.853Z",
"azure": {
"compute_vm": {
"cpu_credits_consumed": {
"avg": 0.07
},
"cpu_credits_remaining": {
"avg": 576
},
"outbound_flows_maximum_creation_rate":{
"avg":6
"disk_read_bytes": {
"total": 4863478.41
},
"inbound_flows_maximum_creation_rate":{
"avg":6
"disk_read_operations_per_sec": {
"avg": 0.1
},
"os_per_disk_read_bytes_per_sec":{
"avg":341.35875
"disk_write_bytes": {
"total": 12664679.24
},
"per_disk_read_bytes_per_sec":{
"avg":0
"disk_write_operations_per_sec": {
"avg": 1.8094999999999999
},
"os_disk_queue_depth":{
"avg":0
"inbound_flows": {
"avg": 257
},
"os_per_disk_qd":{
"avg":0
"inbound_flows_maximum_creation_rate": {
"avg": 4
},
"os_disk_read_bytes_per_sec":{
"avg":341.35875
"network_in": {
"total": 1268082
},
"network_in":{
"total":3933481.0
"network_in_total": {
"total": 1463307
},
"network_out":{
"total":7169752.0
"network_out": {
"total": 876498
},
"os_disk_write_operations_per_sec":{
"avg":4.994285714285715
"network_out_total": {
"total": 1517541
},
"percentage_cpu":{
"avg":8.780625
"os_disk_queue_depth": {
"avg": 0.002
},
"cpu_credits_remaining":{
"avg":864
"os_disk_read_bytes_per_sec": {
"avg": 16211.591
},
"network_out_total":{
"total":9249694.0
"os_disk_read_operations_per_sec": {
"avg": 0.2
},
"disk_read_operations_per_sec":{
"avg":0.022857142857142857
"os_disk_write_bytes_per_sec": {
"avg": 42215.592
},
"disk_write_bytes":{
"total":1.759878456E7
"os_disk_write_operations_per_sec": {
"avg": 3.6189999999999998
},
"os_disk_write_bytes_per_sec":{
"avg":73050.70375
"os_per_disk_qd": {
"avg": 0.002
},
"cpu_credits_consumed":{
"avg":0.175
"os_per_disk_read_bytes_per_sec": {
"avg": 16211.591
},
"per_disk_qd":{
"avg":0
"os_per_disk_read_operations_per_sec": {
"avg": 0.2
},
"disk_write_operations_per_sec":{
"avg":2.5221428571428572
"os_per_disk_write_bytes_per_sec": {
"avg": 42215.592
},
"os_per_disk_write_operations_per_sec":{
"avg":4.994285714285715
"os_per_disk_write_operations_per_sec": {
"avg": 3.6189999999999998
},
"per_disk_write_operations_per_sec":{
"avg":0.049999999999999996
"outbound_flows": {
"avg": 257
},
"inbound_flows":{
"avg":291.2
"outbound_flows_maximum_creation_rate": {
"avg": 4
},
"os_disk_read_operations_per_sec":{
"avg":0.045714285714285714
"per_disk_qd": {
"avg": 0
},
"disk_read_bytes":{
"total":81926.52
"per_disk_read_bytes_per_sec": {
"avg": 0
},
"network_in_total":{
"total":4920267.0
"per_disk_read_operations_per_sec": {
"avg": 0
},
"per_disk_read_operations_per_sec":{
"avg":0
"per_disk_write_bytes_per_sec": {
"avg": 0
},
"per_disk_write_bytes_per_sec":{
"avg":277.56
"per_disk_write_operations_per_sec": {
"avg": 0
},
"os_per_disk_write_bytes_per_sec":{
"avg":73050.70375
"percentage_cpu": {
"avg": 3.901
}
},
"namespace": "Microsoft.Compute/virtualMachines",
"resource": {
"group": "obs-test",
"type": "Microsoft.Compute/virtualMachines"
},
"subscription_id": "7657426d-c4c3-44ac-88a2-3b2cd59e6dba",
"timegrain": "PT5M"
},
"cloud": {
"instance": {
"id": "/subscriptions/7657426d-c4c3-44ac-88a2-3b2cd59e6dba/resourceGroups/obs-test/providers/Microsoft.Compute/virtualMachines/test1067",
"name": "test1067"
},
"machine": {
"type": "Standard_B2s"
},
"provider": "azure",
"region": "westeurope"
},
"event": {
"dataset": "azure.compute_vm",
"duration": 115000,
"module": "azure"
},
"host": {
"cpu": {
"pct": 3.901
},
"disk": {
"read": {
"bytes": 4863478.41
},
"os_per_disk_read_operations_per_sec":{
"avg":0.045714285714285714
"write": {
"bytes": 12664679.24
}
},
"id": "/subscriptions/7657426d-c4c3-44ac-88a2-3b2cd59e6dba/resourceGroups/obs-test/providers/Microsoft.Compute/virtualMachines/test1067",
"name": "test1067",
"network": {
"in": {
"bytes": 1463307,
"packets": 1517541
},
"out": {
"bytes": 1268082,
"packets": 876498
}
}
},
"service":{
"type":"azure"
"metricset": {
"name": "compute_vm",
"period": 10000
},
"service": {
"type": "azure"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// or more contributor license agreements. Licensed under the Elastic License;
// you may not use this file except in compliance with the Elastic License.

kaiyan-sheng marked this conversation as resolved.
Show resolved Hide resolved
// +build integration
// +build azure

package compute_vm

import (
Expand Down
Loading