Skip to content

Commit fb7c1d0

Browse files
authored
Allow to include a sample event in input packages (#447)
1 parent 374c5ae commit fb7c1d0

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

spec/changelog.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
- description: Add definition of system tests for input packages
1111
type: enhancement
1212
link: https://github.com/elastic/package-spec/pull/443
13+
- description: Allow to include a sample event in input packages
14+
type: enhancement
15+
link: https://github.com/elastic/package-spec/pull/447
1316
- version: 2.1.0
1417
changes:
1518
- description: Allowing multiple services included as part of custom-agent-deployer

spec/input/spec.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ spec:
4646
name: fields
4747
required: true
4848
$ref: "../integration/data_stream/fields/spec.yml"
49+
- description: Sample event file
50+
type: file
51+
name: "sample_event.json"
52+
contentMediaType: "application/json"
53+
required: false
4954
- description: Folder containing development resources
5055
type: folder
5156
name: _dev
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"@timestamp": "2022-11-16T19:00:58.919Z",
3+
"agent": {
4+
"ephemeral_id": "1f2789fe-4041-4b4d-aac2-076a34c5d24f",
5+
"id": "47bdbac3-731d-4b11-9af6-06fba253dba8",
6+
"name": "docker-fleet-agent",
7+
"type": "metricbeat",
8+
"version": "8.5.0"
9+
},
10+
"data_stream": {
11+
"dataset": "sql_input.sql_query",
12+
"namespace": "ep",
13+
"type": "metrics"
14+
},
15+
"ecs": {
16+
"version": "8.0.0"
17+
},
18+
"elastic_agent": {
19+
"id": "47bdbac3-731d-4b11-9af6-06fba253dba8",
20+
"snapshot": true,
21+
"version": "8.5.0"
22+
},
23+
"event": {
24+
"dataset": "sql_input.sql_query",
25+
"duration": 1326395,
26+
"module": "sql"
27+
},
28+
"host": {
29+
"architecture": "x86_64",
30+
"containerized": false,
31+
"hostname": "docker-fleet-agent",
32+
"id": "0addaca3101a43f4a52be882837fb33d",
33+
"ip": [
34+
"192.168.192.7"
35+
],
36+
"mac": [
37+
"02-42-C0-A8-C0-07"
38+
],
39+
"name": "docker-fleet-agent",
40+
"os": {
41+
"codename": "focal",
42+
"family": "debian",
43+
"kernel": "5.15.0-50-generic",
44+
"name": "Ubuntu",
45+
"platform": "ubuntu",
46+
"type": "linux",
47+
"version": "20.04.5 LTS (Focal Fossa)"
48+
}
49+
},
50+
"metricset": {
51+
"name": "query",
52+
"period": 10000
53+
},
54+
"service": {
55+
"address": "elastic-package-service-sql_input-1:3306",
56+
"type": "sql"
57+
},
58+
"sql": {
59+
"driver": "mysql",
60+
"metrics": {},
61+
"query": "SHOW GLOBAL STATUS LIKE 'Innodb_system%'"
62+
}
63+
}

0 commit comments

Comments
 (0)