Skip to content

Commit

Permalink
[Metricbeat GCP] Improve integration test to generate more specific d…
Browse files Browse the repository at this point in the history
…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
kaiyan-sheng authored Apr 27, 2020
1 parent f8f9a66 commit 3ba2d22
Show file tree
Hide file tree
Showing 20 changed files with 518 additions and 348 deletions.
6 changes: 3 additions & 3 deletions x-pack/metricbeat/module/googlecloud/compute/_meta/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"id": "elastic-observability"
},
"instance": {
"id": "6889336735612324102",
"name": "gke-dev-oblt-dev-oblt-pool-83a8831b-kd53"
"id": "1174463293187628268",
"name": "gke-observability-8--observability-8--bc1afd95-ngmh"
},
"machine": {
"type": "n1-standard-4"
Expand Down Expand Up @@ -40,7 +40,7 @@
},
"labels": {
"metrics": {
"device_name": "disk-4",
"device_name": "disk-2",
"device_type": "permanent",
"storage_type": "pd-standard"
},
Expand Down
83 changes: 38 additions & 45 deletions x-pack/metricbeat/module/googlecloud/compute/_meta/data_cpu.json
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 x-pack/metricbeat/module/googlecloud/compute/_meta/data_disk.json
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"
}
}

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3ba2d22

Please sign in to comment.