forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Metricbeat GCP] Improve integration test to generate more specific d…
…ata-*.json (elastic#17906) (elastic#18011) * Improve TestData integration test to generate more specific data-*.json * rerun TestData to generate data.json files (cherry picked from commit 3bba66d)
- Loading branch information
1 parent
f8f9a66
commit 3ba2d22
Showing
20 changed files
with
518 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 38 additions & 45 deletions
83
x-pack/metricbeat/module/googlecloud/compute/_meta/data_cpu.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,62 @@ | ||
{ | ||
"@timestamp": "2020-01-08T16:06:00.000Z", | ||
"@metadata": { | ||
"beat": "metricbeat", | ||
"type": "_doc", | ||
"version": "8.0.0" | ||
}, | ||
"host": { | ||
"name": "mcastro", | ||
"id": "54f70115bae545cbac2b150f254472a0", | ||
"containerized": false, | ||
"hostname": "mcastro", | ||
"architecture": "x86_64", | ||
"os": { | ||
"version": "", | ||
"family": "", | ||
"name": "Antergos Linux", | ||
"kernel": "5.4.3-arch1-1", | ||
"platform": "antergos" | ||
} | ||
}, | ||
"agent": { | ||
"ephemeral_id": "8b802033-b611-414b-bcaf-1aa19e5f5901", | ||
"hostname": "mcastro", | ||
"id": "7e36a073-1a32-4a94-b65b-4c7f971fb228", | ||
"version": "8.0.0", | ||
"type": "metricbeat" | ||
}, | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"cloud": { | ||
"account": { | ||
"id": "elastic-metricbeat" | ||
"id": "elastic-observability" | ||
}, | ||
"provider": "googlecloud", | ||
"instance": { | ||
"name": "instance-1", | ||
"id": "4503798379141677974" | ||
"id": "1174463293187628268", | ||
"name": "gke-observability-8--observability-8--bc1afd95-ngmh" | ||
}, | ||
"machine": { | ||
"type": "f1-micro" | ||
"type": "n1-standard-4" | ||
}, | ||
"availability_zone": "us-central1-a" | ||
"provider": "googlecloud" | ||
}, | ||
"cloud.availability_zone": "europe-west1-c", | ||
"event": { | ||
"duration": 1398412653, | ||
"dataset": "googlecloud.compute", | ||
"duration": 115000, | ||
"module": "googlecloud" | ||
}, | ||
"metricset": { | ||
"name": "compute", | ||
"period": 300000 | ||
}, | ||
"googlecloud": { | ||
"compute": { | ||
"firewall": { | ||
"dropped_bytes_count": { | ||
"value": 181 | ||
}, | ||
"dropped_packets_count": { | ||
"value": 3 | ||
} | ||
}, | ||
"instance": { | ||
"cpu": { | ||
"reserved_cores": 0.2, | ||
"utilization": 0.005524845140497596 | ||
"reserved_cores": { | ||
"value": 4 | ||
}, | ||
"usage_time": { | ||
"value": 63.478293027728796 | ||
}, | ||
"utilization": { | ||
"value": 0.26449288761553663 | ||
} | ||
}, | ||
"uptime": { | ||
"value": 60 | ||
} | ||
} | ||
}, | ||
"labels": {} | ||
"labels": { | ||
"user": { | ||
"goog-gke-node": "" | ||
} | ||
} | ||
}, | ||
"metricset": { | ||
"name": "compute", | ||
"period": 10000 | ||
}, | ||
"service": { | ||
"type": "googlecloud" | ||
}, | ||
"ecs": { | ||
"version": "1.2.0" | ||
} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
x-pack/metricbeat/module/googlecloud/compute/_meta/data_disk.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"cloud": { | ||
"account": { | ||
"id": "elastic-observability" | ||
}, | ||
"instance": { | ||
"id": "8390997210852978465", | ||
"name": "gke-observability-7--observability-7--3dd3e39b-0jm5" | ||
}, | ||
"machine": { | ||
"type": "n1-standard-4" | ||
}, | ||
"provider": "googlecloud" | ||
}, | ||
"cloud.availability_zone": "europe-west1-c", | ||
"event": { | ||
"dataset": "googlecloud.compute", | ||
"duration": 115000, | ||
"module": "googlecloud" | ||
}, | ||
"googlecloud": { | ||
"compute": { | ||
"instance": { | ||
"disk": { | ||
"read_bytes_count": { | ||
"value": 0 | ||
}, | ||
"read_ops_count": { | ||
"value": 0 | ||
}, | ||
"write_bytes_count": { | ||
"value": 0 | ||
}, | ||
"write_ops_count": { | ||
"value": 0 | ||
} | ||
} | ||
} | ||
}, | ||
"labels": { | ||
"metrics": { | ||
"device_name": "gke-observability-7-1--pvc-65581044-7d5d-11ea-8cd9-42010af0011c", | ||
"device_type": "permanent", | ||
"storage_type": "pd-standard" | ||
}, | ||
"user": { | ||
"goog-gke-node": "" | ||
} | ||
} | ||
}, | ||
"metricset": { | ||
"name": "compute", | ||
"period": 10000 | ||
}, | ||
"service": { | ||
"type": "googlecloud" | ||
} | ||
} |
74 changes: 0 additions & 74 deletions
74
x-pack/metricbeat/module/googlecloud/compute/_meta/data_disk_01.json
This file was deleted.
Oops, something went wrong.
77 changes: 0 additions & 77 deletions
77
x-pack/metricbeat/module/googlecloud/compute/_meta/data_disk_02.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.