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

Migrate obs-infraobs-integrations to package-spec v3 #3 #8203

Merged
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
b7e22cd
[oracle]: migration with yq
shmsr Oct 13, 2023
7800451
[oracle_weblogic]: migration with yq
shmsr Oct 13, 2023
05120ab
[postgresql]: migration with yq
shmsr Oct 13, 2023
16f5961
[rabbitmq]: migration with yq
shmsr Oct 13, 2023
d2a6874
[redisenterprise]: migration with yq
shmsr Oct 13, 2023
fc8d56d
[salesforce]: migration with yq
shmsr Oct 13, 2023
70652ea
[spring_boot]: migration with yq
shmsr Oct 13, 2023
0e6704d
[redis]: migration with yq
shmsr Oct 15, 2023
0829c81
[system]: migration with yq
shmsr Oct 15, 2023
325e8aa
[tomcat]: migration with yq
shmsr Oct 15, 2023
238c030
[traefik]: migration with yq
shmsr Oct 15, 2023
98e56a5
[vsphere]: migration with yq
shmsr Oct 15, 2023
8d50af2
[websphere_application_server]: migration with yq
shmsr Oct 15, 2023
b0f3dc8
[zookeeper]: migration with yq
shmsr Oct 15, 2023
e5ce8c2
[oracle] - removed dotted YAML keys from manifest
shmsr Oct 13, 2023
1cbfa00
[oracle_weblogic] - removed dotted YAML keys from manifest
shmsr Oct 13, 2023
adccf8a
[php_fpm] - removed dotted YAML keys from manifest
shmsr Oct 13, 2023
d7729ac
[postgresql] - removed dotted YAML keys from manifest
shmsr Oct 13, 2023
03acbf9
[prometheus_input] - removed dotted YAML keys from manifest
shmsr Oct 15, 2023
bc6d80d
[prometheus_input]: fix test-default-config.yml
shmsr Oct 15, 2023
e4d3ded
[rabbitmq] - removed dotted YAML keys from manifest
shmsr Oct 15, 2023
6c4e288
[redisenterprise] - removed dotted YAML keys from manifest
shmsr Oct 15, 2023
fb7b7b2
[spring_boot] - removed dotted YAML keys from manifest
shmsr Oct 15, 2023
f2b375b
[sql] - removed dotted YAML keys from manifest
shmsr Oct 15, 2023
5e0b310
[statsd_input] - removed dotted YAML keys from manifest
shmsr Oct 15, 2023
de691ef
[system] - change to format_version 3.0.0
shmsr Oct 15, 2023
67d7674
[traefik] - removed dotted YAML keys from manifest
shmsr Oct 15, 2023
cd51286
[vsphere] - removed dotted YAML keys from manifest
shmsr Oct 15, 2023
a3cf8b0
[websphere_application_server] - removed dotted YAML keys from manifest
shmsr Oct 15, 2023
7d5ba36
[zookeeper] - removed dotted YAML keys from manifest
shmsr Oct 15, 2023
c039f89
Add validation.yml
shmsr Oct 15, 2023
725064f
Fix PR number in changelog
shmsr Oct 15, 2023
3cece71
revert changes for packages for which v3 migration failed
shmsr Oct 16, 2023
2d9d558
Merge branch 'main' into migrate-infraobs-ps-v3-batch-3-serverless
shmsr Oct 18, 2023
63d723c
Fix PR number in changelog
shmsr Oct 18, 2023
6e05c2a
[oracle]: fix tests
shmsr Oct 18, 2023
2ba1400
[oracle]: add validation
shmsr Oct 18, 2023
8228126
[oracle_weblogic]: fix tests
shmsr Oct 18, 2023
65c02d9
[oracle_weblogic]: fix readme
shmsr Oct 18, 2023
4220f0c
[spring_boot]: fix tests
shmsr Oct 18, 2023
3e1b8aa
remove release: beta from oracle and redisenterprise
shmsr Oct 19, 2023
e02ee03
Remove system package changes
shmsr Oct 19, 2023
02faa79
Update packages/oracle/data_stream/database_audit/elasticsearch/inges…
shmsr Oct 19, 2023
ea290b8
Revert "remove release: beta from oracle and redisenterprise"
shmsr Oct 19, 2023
f4cea8a
improve healthcheck for spring_boot to fix ci
shmsr Oct 19, 2023
d951b2e
test commit
shmsr Oct 19, 2023
e88f241
Revert "test commit"
shmsr Oct 19, 2023
970d849
play with stack version
shmsr Oct 19, 2023
ba5f46f
[statsd_input]: revert package-spec v3 changes
shmsr Oct 25, 2023
1d408d1
[sql_input]: revert package-spec v3 changes
shmsr Oct 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/oracle/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: 1.22.0
changes:
- description: Update the package format_version to 3.0.0.
type: enhancement
link: https://github.com/elastic/integrations/pull/8203
- version: 1.21.0
changes:
- description: Adapt fields for changes in file system info
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -12,10 +12,10 @@ processors:
value: event
- set:
field: event.category
value: database
value: [database]
- set:
field: event.type
value: access
value: [access]
- set:
field: event.outcome
value: success
Expand Down Expand Up @@ -138,9 +138,13 @@ processors:
field: tmp_timestamp
patterns:
- "%{ISO8601_TIMEZONE:event.timezone}$"
- rename:
- set:
field: user.roles
value: ["{{{oracle.database_audit.privilege}}}"]
shmsr marked this conversation as resolved.
Show resolved Hide resolved
ignore_empty_value: true
shmsr marked this conversation as resolved.
Show resolved Hide resolved
ignore_failure: true
- remove:
field: oracle.database_audit.privilege
target_field: user.roles
ignore_missing: true
- rename:
field: LENGTH
Expand Down
Expand Up @@ -89,11 +89,6 @@
description: >
The related OS user.

- name: os_userid
tommyers-elastic marked this conversation as resolved.
Show resolved Hide resolved
type: keyword
description: >
The related OS user.

- name: returncode
type: keyword
description: >
Expand Down
12 changes: 9 additions & 3 deletions packages/oracle/data_stream/database_audit/sample_event.json
Expand Up @@ -28,13 +28,17 @@
"event": {
"action": "database_audit",
"agent_id_status": "verified",
"category": "database",
"category": [
"database"
],
"dataset": "oracle.database_audit",
"ingested": "2023-10-05T12:18:05Z",
"kind": "event",
"outcome": "success",
"timezone": "-04:00",
"type": "access"
"type": [
"access"
]
},
"host": {
"architecture": "x86_64",
Expand Down Expand Up @@ -107,6 +111,8 @@
"oracle-database_audit"
],
"user": {
"roles": "SYSDBA"
"roles": [
"SYSDBA"
]
}
}
1 change: 0 additions & 1 deletion packages/oracle/data_stream/memory/fields/fields.yml
@@ -1,6 +1,5 @@
- name: oracle.memory
type: group
release: beta
fields:
- name: pga
type: group
Expand Down
@@ -1,6 +1,5 @@
- name: oracle.performance
type: group
release: beta
fields:
- name: machine
type: keyword
Expand Down
1 change: 0 additions & 1 deletion packages/oracle/data_stream/sysmetric/fields/fields.yml
@@ -1,6 +1,5 @@
- name: oracle.sysmetric
type: group
release: beta
fields:
- name: long_table_scans_per_sec
type: double
Expand Down
@@ -1,6 +1,5 @@
- name: oracle.system_statistics
type: group
release: beta
fields:
- name: parallel_operations_not_downgraded
type: double
Expand Down
1 change: 0 additions & 1 deletion packages/oracle/data_stream/tablespace/fields/fields.yml
@@ -1,6 +1,5 @@
- name: oracle.tablespace
type: group
release: beta
fields:
- name: name
type: keyword
Expand Down
12 changes: 9 additions & 3 deletions packages/oracle/docs/README.md
Expand Up @@ -194,13 +194,17 @@ An example event for `database_audit` looks as following:
"event": {
"action": "database_audit",
"agent_id_status": "verified",
"category": "database",
"category": [
"database"
],
"dataset": "oracle.database_audit",
"ingested": "2023-10-05T12:18:05Z",
"kind": "event",
"outcome": "success",
"timezone": "-04:00",
"type": "access"
"type": [
"access"
]
},
"host": {
"architecture": "x86_64",
Expand Down Expand Up @@ -273,7 +277,9 @@ An example event for `database_audit` looks as following:
"oracle-database_audit"
],
"user": {
"roles": "SYSDBA"
"roles": [
"SYSDBA"
]
}
}
```
Expand Down
12 changes: 7 additions & 5 deletions packages/oracle/manifest.yml
@@ -1,16 +1,17 @@
format_version: 1.0.0
format_version: "3.0.0"
name: oracle
title: "Oracle"
version: 1.21.0
license: basic
version: "1.22.0"
description: Collect Oracle Audit Log, Performance metrics, Tablespace metrics, Sysmetrics metrics, System statistics metrics, memory metrics from Oracle database.
type: integration
categories:
- observability
- datastore
release: ga
conditions:
kibana.version: "^8.8.0"
kibana:
version: "^8.8.0"
elastic:
subscription: basic
screenshots:
- src: /img/Oracle-overview-dashboard.png
title: Oracle overview dashboard
Expand Down Expand Up @@ -63,3 +64,4 @@ policy_templates:
description: Collecting performance metrics, tablespace metrics, sysmetrics, system statistics metrics and memory metrics from Oracle database instances
owner:
github: elastic/obs-infraobs-integrations
type: elastic
3 changes: 3 additions & 0 deletions packages/oracle/validation.yml
@@ -0,0 +1,3 @@
errors:
exclude_checks:
- SVR00002
5 changes: 5 additions & 0 deletions packages/oracle_weblogic/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.3.0"
changes:
- description: Update the package format_version to 3.0.0.
type: enhancement
link: https://github.com/elastic/integrations/pull/8203
- version: "1.2.0"
changes:
- description: Enable time series data streams for the metrics datasets. This dramatically reduces storage for metrics and is expected to progressively improve query performance. For more details, see https://www.elastic.co/guide/en/elasticsearch/reference/current/tsds.html.
Expand Down
Expand Up @@ -9,19 +9,21 @@
"category": [
"log"
],
"ingested": "2023-01-18T08:48:25.790100846Z",
"ingested": "2023-10-13T11:27:51.595108679Z",
"kind": "event",
"module": "oracle_weblogic",
"original": "172.17.32.1 - - [26/Mar/2022:23:40:05 +0530] \"GET /medrec/javax.faces.resource/welcome.jpg.xhtml?ln=img\u0026amp;con=bayland HTTP/1.1\" 200 844071 ",
"original": "172.17.32.1 - - [26/Mar/2022:23:40:05 +0530] \"GET /medrec/javax.faces.resource/welcome.jpg.xhtml?ln=img&con=bayland HTTP/1.1\" 200 844071 ",
"type": "access"
},
"host": {
"ip": "172.17.32.1"
"ip": [
"172.17.32.1"
]
},
"http": {
"request": {
"method": "GET",
"referrer": "/medrec/javax.faces.resource/welcome.jpg.xhtml?ln=img\u0026amp;con=bayland"
"referrer": "/medrec/javax.faces.resource/welcome.jpg.xhtml?ln=img&con=bayland"
},
"response": {
"bytes": 844071,
Expand All @@ -48,14 +50,16 @@
"category": [
"log"
],
"ingested": "2023-01-18T08:48:25.790115221Z",
"ingested": "2023-10-13T11:27:51.595116845Z",
"kind": "event",
"module": "oracle_weblogic",
"original": "172.17.32.1 - - [26/Mar/2022:23:40:05 +0530] \"GET /favicon.ico HTTP/1.1\" 404 1164 ",
"type": "access"
},
"host": {
"ip": "172.17.32.1"
"ip": [
"172.17.32.1"
]
},
"http": {
"request": {
Expand Down Expand Up @@ -87,14 +91,16 @@
"category": [
"log"
],
"ingested": "2023-01-18T08:48:25.790116721Z",
"ingested": "2023-10-13T11:27:51.595117970Z",
"kind": "event",
"module": "oracle_weblogic",
"original": "0:0:0:0:0:0:0:1 - - [26/Mar/2022:23:40:39 +0530] \"GET /favicon.ico HTTP/1.1\" 404 1164 ",
"type": "access"
},
"host": {
"ip": "0:0:0:0:0:0:0:1"
"ip": [
"0:0:0:0:0:0:0:1"
]
},
"http": {
"request": {
Expand Down Expand Up @@ -126,14 +132,16 @@
"category": [
"log"
],
"ingested": "2023-01-18T08:48:25.790118096Z",
"ingested": "2023-10-13T11:27:51.595118887Z",
"kind": "event",
"module": "oracle_weblogic",
"original": "172.17.32.1 - - [26/Mar/2022:23:43:44 +0530] \"GET /medrec/index.xhtml HTTP/1.1\" 200 8863 ",
"type": "access"
},
"host": {
"ip": "172.17.32.1"
"ip": [
"172.17.32.1"
]
},
"http": {
"request": {
Expand Down Expand Up @@ -165,19 +173,21 @@
"category": [
"log"
],
"ingested": "2023-01-18T08:48:25.790119263Z",
"ingested": "2023-10-13T11:27:51.595119762Z",
"kind": "event",
"module": "oracle_weblogic",
"original": "172.17.32.1 - - [26/Mar/2022:23:43:45 +0530] \"GET /medrec/javax.faces.resource/admin.jpg.xhtml?ln=img\u0026amp;con=bayland HTTP/1.1\" 200 8116 ",
"original": "172.17.32.1 - - [26/Mar/2022:23:43:45 +0530] \"GET /medrec/javax.faces.resource/admin.jpg.xhtml?ln=img&con=bayland HTTP/1.1\" 200 8116 ",
"type": "access"
},
"host": {
"ip": "172.17.32.1"
"ip": [
"172.17.32.1"
]
},
"http": {
"request": {
"method": "GET",
"referrer": "/medrec/javax.faces.resource/admin.jpg.xhtml?ln=img\u0026amp;con=bayland"
"referrer": "/medrec/javax.faces.resource/admin.jpg.xhtml?ln=img&con=bayland"
},
"response": {
"bytes": 8116,
Expand All @@ -204,19 +214,21 @@
"category": [
"log"
],
"ingested": "2023-01-18T08:48:25.790120388Z",
"ingested": "2023-10-13T11:27:51.595120637Z",
"kind": "event",
"module": "oracle_weblogic",
"original": "172.17.32.1 - - [26/Mar/2022:23:43:45 +0530] \"GET /medrec/javax.faces.resource/patient.jpg.xhtml?ln=img\u0026amp;con=bayland HTTP/1.1\" 200 10096 ",
"original": "172.17.32.1 - - [26/Mar/2022:23:43:45 +0530] \"GET /medrec/javax.faces.resource/patient.jpg.xhtml?ln=img&con=bayland HTTP/1.1\" 200 10096 ",
"type": "access"
},
"host": {
"ip": "172.17.32.1"
"ip": [
"172.17.32.1"
]
},
"http": {
"request": {
"method": "GET",
"referrer": "/medrec/javax.faces.resource/patient.jpg.xhtml?ln=img\u0026amp;con=bayland"
"referrer": "/medrec/javax.faces.resource/patient.jpg.xhtml?ln=img&con=bayland"
},
"response": {
"bytes": 10096,
Expand All @@ -243,19 +255,21 @@
"category": [
"log"
],
"ingested": "2023-01-18T08:48:25.790121555Z",
"ingested": "2023-10-13T11:27:51.595121429Z",
"kind": "event",
"module": "oracle_weblogic",
"original": "172.17.32.1 - - [26/Mar/2022:23:43:45 +0530] \"GET /medrec/javax.faces.resource/physician.jpg.xhtml?ln=img\u0026amp;con=bayland HTTP/1.1\" 200 10169 ",
"original": "172.17.32.1 - - [26/Mar/2022:23:43:45 +0530] \"GET /medrec/javax.faces.resource/physician.jpg.xhtml?ln=img&con=bayland HTTP/1.1\" 200 10169 ",
"type": "access"
},
"host": {
"ip": "172.17.32.1"
"ip": [
"172.17.32.1"
]
},
"http": {
"request": {
"method": "GET",
"referrer": "/medrec/javax.faces.resource/physician.jpg.xhtml?ln=img\u0026amp;con=bayland"
"referrer": "/medrec/javax.faces.resource/physician.jpg.xhtml?ln=img&con=bayland"
},
"response": {
"bytes": 10169,
Expand Down
@@ -1,5 +1,5 @@
dynamic_fields:
event.ingested: ".*"
"event.ingested": ".*"
fields:
tags:
- preserve_original_event
Expand Up @@ -54,6 +54,11 @@ processors:
target_field: host.ip
ignore_missing: true
ignore_failure: true
- set:
field: host.ip
tommyers-elastic marked this conversation as resolved.
Show resolved Hide resolved
value: ["{{{host.ip}}}"]
ignore_empty_value: true
ignore_failure: true
- convert:
field: http.response.status_code
type: long
Expand Down
Expand Up @@ -36,7 +36,9 @@
"architecture": "x86_64",
"containerized": true,
"hostname": "docker-fleet-agent",
"ip": "172.17.32.1",
"ip": [
"172.17.32.1"
],
"mac": [
"02:42:ac:12:00:07"
],
Expand Down