Skip to content

Commit

Permalink
Migrate obs-infraobs-integrations to package-spec v3 #4 (#8216)
Browse files Browse the repository at this point in the history
* [azure_app_service] - removed dotted YAML keys from manifest

The format_version in the package manifest changed from 2.8.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.

[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -fix-dotted-yaml-keys -add-owner-type packages/azure_app_service

* [citrix_adc] - removed dotted YAML keys from manifest

The format_version in the package manifest changed from 2.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.

[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -fix-dotted-yaml-keys -add-owner-type packages/citrix_adc

* [redis]: migration with yq

* [redis] - removed dotted YAML keys from manifest

The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.

[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -fix-dotted-yaml-keys -add-owner-type packages/redis

* [tomcat]: migration with yq

* [tomcat] - removed dotted YAML keys from manifest

The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.

[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -fix-dotted-yaml-keys -add-owner-type packages/tomcat

* Add validation.yml

* Fix PR number in changelog
  • Loading branch information
shmsr authored Oct 18, 2023
1 parent d63214f commit 225555f
Show file tree
Hide file tree
Showing 29 changed files with 202 additions and 132 deletions.
5 changes: 5 additions & 0 deletions packages/azure_app_service/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: 0.1.0
changes:
- description: Update the package format_version to 3.0.0.
type: enhancement
link: https://github.com/elastic/integrations/pull/8216
- version: "0.0.1"
changes:
- description: Initial release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,22 +95,6 @@
external: ecs
- name: source.port
external: ecs
- name: geo.continent_name
external: ecs
- name: geo.country_iso_code
external: ecs
- name: geo.country_name
external: ecs
- name: geo.location
external: ecs
- name: geo.city_name
external: ecs
- name: geo.region_name
external: ecs
- name: geo.name
external: ecs
- name: geo.region_iso_code
external: ecs
- name: log.level
external: ecs
- name: rule.id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,34 @@
- name: log
type: keyword
description: Details about the event depending on level
# The following `geo` mappings are not allowed at root level in ECS, and are defined here for backward compatibility.
# See: https://github.com/elastic/integrations/pull/8050
- name: geo
type: group
description: 'Geo fields can carry data about a specific location related to an event. This geolocation information can be derived from techniques such as Geo IP, or be user-supplied.'
fields:
- name: continent_name
type: keyword
description: Name of the continent.
- name: country_iso_code
type: keyword
description: Country ISO code.
- name: country_name
type: keyword
description: Country name.
- name: location
type: geo_point
description: Longitude and latitude.
- name: city_name
type: keyword
description: City name.
- name: region_name
type: keyword
description: Region name.
- name: name
type: keyword
description: 'User-defined description of a location, at the level of granularity they care about. Could be the name of their data centers, the floor number, if this describes a local physical entity, city names. Not typically used in automated geolocation.'
level: extended
- name: region_iso_code
type: keyword
description: Region ISO code.
11 changes: 7 additions & 4 deletions packages/azure_app_service/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 2.8.0
format_version: "3.0.0"
name: azure_app_service
title: "Azure App Service"
version: 0.0.1
version: "0.1.0"
source:
license: "Elastic-2.0"
description: "Collect logs and metrics from Azure App Service with Elastic Agent."
Expand All @@ -10,8 +10,10 @@ categories:
- azure
- cloud
conditions:
kibana.version: "^8.7.1"
elastic.subscription: "basic"
kibana:
version: "^8.7.1"
elastic:
subscription: "basic"
vars:
- name: eventhub
type: text
Expand Down Expand Up @@ -76,3 +78,4 @@ policy_templates:
input_group: logs
owner:
github: elastic/obs-infraobs-integrations
type: elastic
5 changes: 5 additions & 0 deletions packages/citrix_adc/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: 1.1.0
changes:
- description: Update the package format_version to 3.0.0.
type: enhancement
link: https://github.com/elastic/integrations/pull/8216
- version: "1.0.1"
changes:
- description: Add null check and ignore_missing check to the rename processor
Expand Down
2 changes: 0 additions & 2 deletions packages/citrix_adc/data_stream/interface/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@
name: event.type
- external: ecs
name: host.ip
- external: ecs
name: interface.id
- external: ecs
name: tags
8 changes: 8 additions & 0 deletions packages/citrix_adc/data_stream/interface/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,11 @@
description: Number of bytes transmitted by an interface since the NetScaler appliance was started or the interface statistics were cleared.
metric_type: counter
unit: byte
# The following `interface` mappings are not allowed at root level in ECS, and are defined here for backward compatibility.
# See: https://github.com/elastic/integrations/pull/8050
- name: interface
type: group
fields:
- name: id
type: keyword
description: Interface ID as reported by an observer (typically SNMP interface ID).
11 changes: 7 additions & 4 deletions packages/citrix_adc/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
format_version: 2.0.0
format_version: "3.0.0"
name: citrix_adc
title: Citrix ADC
version: "1.0.1"
version: "1.1.0"
description: This Elastic integration collects metrics from Citrix ADC product.
type: integration
categories:
- observability
- network
conditions:
kibana.version: ^8.7.1
elastic.subscription: basic
kibana:
version: ^8.7.1
elastic:
subscription: basic
icons:
- src: /img/citrix_adc-logo.svg
title: Citrix ADC logo
Expand Down Expand Up @@ -109,3 +111,4 @@ policy_templates:
# -----END CERTIFICATE-----
owner:
github: elastic/obs-infraobs-integrations
type: elastic
3 changes: 3 additions & 0 deletions packages/citrix_adc/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
errors:
exclude_checks:
- SVR00002
5 changes: 5 additions & 0 deletions packages/redis/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: 1.12.0
changes:
- description: Update the package format_version to 3.0.0.
type: enhancement
link: https://github.com/elastic/integrations/pull/8216
- version: "1.11.1"
changes:
- description: Add null check and ignore_missing check to the rename processor
Expand Down
3 changes: 1 addition & 2 deletions packages/redis/data_stream/info/fields/ecs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
- external: ecs
name: os
- external: ecs
name: os.full
- external: ecs
name: process
- external: ecs
Expand All @@ -10,6 +8,7 @@
name: ecs.version
- external: ecs
name: service.address
# Reason for adding as dimension field : A connection string to the server.
dimension: true
- external: ecs
name: service.type
Expand Down
18 changes: 10 additions & 8 deletions packages/redis/data_stream/info/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -524,11 +524,13 @@
metric_type: gauge
description: |
Count of slow operations
- name: service.address
type: keyword
# Reason for adding as dimension field : A connection string to the server.
dimension: true
description: Client address
- name: service.version
type: keyword
description: Version of the service the data was collected from
- name: os
type: group
description: The OS fields contain information about the operating system.
fields:
- name: full
type: keyword
description: Operating system name, including the version or code name.
multi_fields:
- name: text
type: match_only_text
2 changes: 1 addition & 1 deletion packages/redis/data_stream/info/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ streams:
title: Redis info metrics
description: Collect Redis info metrics
elasticsearch:
index_mode: "time_series"
index_mode: "time_series"
2 changes: 1 addition & 1 deletion packages/redis/data_stream/key/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ streams:
title: Redis key metrics
description: Collect Redis key metrics
elasticsearch:
index_mode: "time_series"
index_mode: "time_series"
2 changes: 1 addition & 1 deletion packages/redis/data_stream/keyspace/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ streams:
title: Redis keyspace metrics
description: Collect Redis keyspace metrics
elasticsearch:
index_mode: "time_series"
index_mode: "time_series"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dynamic_fields:
event.ingested: ".*"
"event.ingested": ".*"
"@timestamp": "^[0-9]{4}(-[0-9]{2}){2}T[0-9]{2}(:[0-9]{2}){2}\\.[0-9]{3}Z$"
fields:
"@timestamp": "2020-04-28T11:07:58.223Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"event": {
"created": "2020-04-28T11:07:58.223Z",
"ingested": "2023-01-19T10:58:02.691822429Z",
"ingested": "2023-10-16T18:52:12.465349054Z",
"original": "26571:M 27 Dec 2018 11:19:18.874 * Synchronization with replica 10.114.208.18:6023 succeeded"
},
"log": {
Expand Down
Loading

0 comments on commit 225555f

Please sign in to comment.