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

Cherry-pick #20391 to 7.x: Add host inventory metrics to googlecloud compute metricset #20724

Merged
merged 2 commits into from
Aug 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ field. You can revert this change by configuring tags for the module and omittin
- Add cloud.instance.name into aws ec2 metricset. {pull}20077[20077]
- Add host inventory metrics into aws ec2 metricset. {pull}20171[20171]
- Add `scope` setting for elasticsearch module, allowing it to monitor an Elasticsearch cluster behind a load-balancing proxy. {issue}18539[18539] {pull}18547[18547]
- Add host inventory metrics to googlecloud compute metricset. {pull}20391[20391]
- Add host inventory metrics to azure compute_vm metricset. {pull}20641[20641]

*Packetbeat*
Expand Down
50 changes: 19 additions & 31 deletions x-pack/metricbeat/module/googlecloud/compute/_meta/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
"id": "elastic-observability"
},
"instance": {
"id": "7692260917184259934",
"name": "instance-test-ks"
"id": "2438671519308240892",
"name": "heartbeat-mumbai"
},
"machine": {
"type": "e2-standard-2"
"type": "f1-micro"
},
"provider": "googlecloud"
},
"cloud.availability_zone": "us-central1-a",
"cloud.availability_zone": "asia-south1-c",
"cloud.region": "asia-south1",
"event": {
"dataset": "googlecloud.compute",
"duration": 115000,
Expand All @@ -23,50 +24,37 @@
"compute": {
"firewall": {
"dropped_bytes_count": {
"value": 171
"value": 435
},
"dropped_packets_count": {
"value": 4
"value": 7
}
},
"instance": {
"cpu": {
"reserved_cores": {
"value": 2
"value": 0.2
},
"usage_time": {
"value": 0.1803964574089818
"value": 0.8653667340986431
},
"utilization": {
"value": 0.001503303811741515
}
},
"memory": {
"balloon": {
"ram_size": {
"value": 7896264704
},
"ram_used": {
"value": 416518144
},
"swap_in_bytes_count": {
"value": 0
},
"swap_out_bytes_count": {
"value": 0
}
"value": 0.07211389450822024
}
},
"uptime": {
"value": 60.000000000000455
"value": 60
}
}
},
"labels": {
"user": {
"created-by": "ks"
}
}
"labels": {}
},
"host": {
"cpu": {
"pct": 0.07211389450822024
},
"id": "2438671519308240892",
"name": "heartbeat-mumbai"
},
"metricset": {
"name": "compute",
Expand Down
50 changes: 19 additions & 31 deletions x-pack/metricbeat/module/googlecloud/compute/_meta/data_cpu.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
"id": "elastic-observability"
},
"instance": {
"id": "7692260917184259934",
"name": "instance-test-ks"
"id": "7925831082803123728",
"name": "heartbeat-tokyo"
},
"machine": {
"type": "e2-standard-2"
"type": "f1-micro"
},
"provider": "googlecloud"
},
"cloud.availability_zone": "us-central1-a",
"cloud.availability_zone": "asia-northeast1-b",
"cloud.region": "asia-northeast1",
"event": {
"dataset": "googlecloud.compute",
"duration": 115000,
Expand All @@ -23,50 +24,37 @@
"compute": {
"firewall": {
"dropped_bytes_count": {
"value": 171
"value": 422
},
"dropped_packets_count": {
"value": 4
"value": 7
}
},
"instance": {
"cpu": {
"reserved_cores": {
"value": 2
"value": 0.2
},
"usage_time": {
"value": 0.1803964574089818
"value": 0.8921228461549617
},
"utilization": {
"value": 0.001503303811741515
}
},
"memory": {
"balloon": {
"ram_size": {
"value": 7896264704
},
"ram_used": {
"value": 416518144
},
"swap_in_bytes_count": {
"value": 0
},
"swap_out_bytes_count": {
"value": 0
}
"value": 0.07434357051291347
}
},
"uptime": {
"value": 60.000000000000455
"value": 60
}
}
},
"labels": {
"user": {
"created-by": "ks"
}
}
"labels": {}
},
"host": {
"cpu": {
"pct": 0.07434357051291347
},
"id": "7925831082803123728",
"name": "heartbeat-tokyo"
},
"metricset": {
"name": "compute",
Expand Down
30 changes: 20 additions & 10 deletions x-pack/metricbeat/module/googlecloud/compute/_meta/data_disk.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
"id": "elastic-observability"
},
"instance": {
"id": "7692260917184259934",
"name": "instance-test-ks"
"id": "7925831082803123728",
"name": "heartbeat-tokyo"
},
"machine": {
"type": "e2-standard-2"
"type": "f1-micro"
},
"provider": "googlecloud"
},
"cloud.availability_zone": "us-central1-a",
"cloud.availability_zone": "asia-northeast1-b",
"cloud.region": "asia-northeast1",
"event": {
"dataset": "googlecloud.compute",
"duration": 115000,
Expand All @@ -30,25 +31,34 @@
"value": 0
},
"write_bytes_count": {
"value": 158506
"value": 0
},
"write_ops_count": {
"value": 25
"value": 0
}
}
}
},
"labels": {
"metrics": {
"device_name": "instance-test-ks",
"device_name": "disk-1",
"device_type": "permanent",
"storage_type": "pd-standard"
},
"user": {
"created-by": "ks"
}
}
},
"host": {
"disk": {
"read": {
"bytes": 0
},
"write": {
"bytes": 0
}
},
"id": "7925831082803123728",
"name": "heartbeat-tokyo"
},
"metricset": {
"name": "compute",
"period": 10000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
"id": "elastic-observability"
},
"instance": {
"id": "7692260917184259934",
"name": "instance-test-ks"
"id": "7925831082803123728",
"name": "heartbeat-tokyo"
},
"machine": {
"type": "e2-standard-2"
"type": "f1-micro"
},
"provider": "googlecloud"
},
"cloud.availability_zone": "us-central1-a",
"cloud.availability_zone": "asia-northeast1-b",
"cloud.region": "asia-northeast1",
"event": {
"dataset": "googlecloud.compute",
"duration": 115000,
Expand All @@ -23,50 +24,37 @@
"compute": {
"firewall": {
"dropped_bytes_count": {
"value": 277
"value": 422
},
"dropped_packets_count": {
"value": 5
"value": 7
}
},
"instance": {
"cpu": {
"reserved_cores": {
"value": 2
"value": 0.2
},
"usage_time": {
"value": 0.18404532833979204
"value": 0.8921228461549617
},
"utilization": {
"value": 0.001533711069498267
}
},
"memory": {
"balloon": {
"ram_size": {
"value": 7896264704
},
"ram_used": {
"value": 416260096
},
"swap_in_bytes_count": {
"value": 0
},
"swap_out_bytes_count": {
"value": 0
}
"value": 0.07434357051291347
}
},
"uptime": {
"value": 60
}
}
},
"labels": {
"user": {
"created-by": "ks"
}
}
"labels": {}
},
"host": {
"cpu": {
"pct": 0.07434357051291347
},
"id": "7925831082803123728",
"name": "heartbeat-tokyo"
},
"metricset": {
"name": "compute",
Expand Down
Loading