Closed tommyers-elastic closed 10 months ago
@shmsr : I know there are couple integrations where the TSDB fields are touched. Would recommend to get TSDB testing done for some of those integrations to ensure there is no loss of data.
@shmsr : I know there are couple integrations where the TSDB fields are touched. Would recommend to get TSDB testing done for some of those integrations to ensure there is no loss of data.
mongodb is the only package where I had to move dimension: true
(for multiple datastreams) to ecs.yml to dedup the fields. Then I'll hold the PR until mongodb is tested properly.
can we pull the mongodb
changes into it's own PR so it doesn't block anything?
Migrated 4 more packages. See: https://github.com/elastic/integrations/pull/8216
Here's a script that'd make reviewing these PRs easier. Because of elastic-package test pipeline -g
the *expected.json are modified (mostly with timestamp changes which is making the PR harder to review). See: https://github.com/elastic/integrations/pull/8203#discussion_r1360428961
Here is something that might help:
Go to your browser's bookmark manager. Right click and create a new bookmark and paste the following script there and save it.
javascript:(function() {
const headers = document.querySelectorAll('div[class*="file-header"][data-path*="log-expected.json"]');
headers.forEach(header => {
const checkbox = header.querySelector('.js-reviewed-checkbox');
if (checkbox && !checkbox.checked) {
checkbox.click();
}
});
})();
See the data-path in the above script? It contains the path of the file. *=
means contains. You want to further modify the script; refer: https://api.jquery.com/category/selectors/attribute-selectors/
So in this script, I'm marking the files as viewed (when in GitHub PR Review) which contains the string log-expected.json
in data-path
attribute.
Now when doing PR review click on the bookmark, those files will get marked as viewed and it'd make it much easier for you to review the changes that matters.
Hope this helps.
cc: @ishleenk17 @tommyers-elastic
Should I pull out mongodb and influxdb from https://github.com/elastic/integrations/pull/8171? As influxdb ci failure is blocking us; I think it better to pull it out from that PR.
cc: @tommyers-elastic
yep sounds good - thanks!
Should I pull out mongodb and influxdb from #8171? As influxdb ci failure is blocking us; I think it better to pull it out from that PR.
cc: @tommyers-elastic
Done. See: https://github.com/elastic/integrations/pull/8234
@andresrc mentioned a tool that helps in transforming the by-reference visualizations into by-value panels. Here's what I found:
https://github.com/elastic/package-spec/issues/316 https://github.com/elastic/kibana/issues/129303 (related issue to the tool) https://github.com/elastic/elastic-package/issues/791 (related issue to the tool)
Repository that contains the tool: https://github.com/flash1293/legacy_vis_analyzer (need to explore; at first glance looks simple to use). With this tool, we'd hopefully be able to address SVR00004
(currently for 19 packages we have skipped this validation).
Summarising below the beta in fields.yml for each of the packages as part of the v3 migration. This will help to discuss any package specific unique scenarios. | Package name | Data stream Name with Beta in fields.yml | Summary |
---|---|---|---|
hadoop | namenode | Since hadoop all data streams is made GA, we should just remove beta from fields.yml. @milan-elastic to re-confirm | |
influxdb | advstatus and status streams | Since the package is in beta, we dont need separate beta in fields.yml | |
mysql | performance and status | This one still beats data streams is showing beta. We can temporarily keep data streams aligned as to beats and track a backlog separately. Some further analysis is needed. | |
oracle | memory, performance, system_statistics and tablespace | @agithomas can you confirm which of the data streams of oracle need to be kept beta. | |
redisenterprise | node and proxy | Since the package is in beta, we can remove beta from fields.yml |
@agithomas can you confirm which of the data streams of oracle need to be kept beta.
I don't find there is any reason to keep it beta
anymore considering Oracle Integration package is used by a few customers and there exist no SDHs.
@lalit-satapathy For mysql, I see:
https://github.com/elastic/beats/blob/main/metricbeat/module/mysql/status/_meta/fields.yml#L5 (status is ga) all other data streams are in beta
So to be consistent, marking them beta except status
i.e., galera_status
and performance
@shmsr Tested the TSDB related scenarios for MongoDB
package in this PR and it seems to be working as expected.
Since hadoop all data streams is made GA, we should just remove beta from fields.yml. @milan-elastic to re-confirm
Yes, I agree we should remove it since Hadoop is GA
Repository that contains the tool: https://github.com/flash1293/legacy_vis_analyzer (need to explore; at first glance looks simple to use). With this tool, we'd hopefully be able to address SVR00004 (currently for 19 packages we have skipped this validation).
This is the old repository owned by a former Elastic employee. The maintained version is this fork.
We should be using that fork instead!
As discussed in the last sprint, I am creating separate issues to track things not done yet as part of this meta issue.
After create the aforementioned issues I will close this issue. We will look at those specific issues for better trackability.
As I have created separate issues for blocking and non-blocking issues, and skipped validations during package-spec upgrade; I am closing this issue. Please feel free to re-open the issue if any discussion is required.
@tommyers-elastic please refresh my memory, why was a blocker for spec v3 to migrate dashboards to lens? I have tried to migrate the Apache package and it seems to be possible https://github.com/elastic/integrations/pull/9818
@jsoriano While migrating packages to spec v3, we encountered issues with multiple packages, including Apache. Error example:
found legacy visualization "Uptime [Metrics Apache]" (metric, TSVB)
Find the actual error here. Noted down some errors while migrating to spec v3.
Later, this PR was opened to address the error above: https://github.com/elastic/integrations/pull/8173. After that, we did not try migrating to spec v3.
Later, this PR was opened to address the error above: https://github.com/elastic/integrations/pull/8173. After that, we did not try migrating to spec v3.
So https://github.com/elastic/integrations/issues/8209 could be already closed?
For the migration to v3, please take a look to https://github.com/elastic/integrations/pull/9818.
Thanks!
Later, this PR was opened to address the error above: #8173. After that, we did not try migrating to spec v3.
So #8209 could be already closed?
For the migration to v3, please take a look to #9818.
Thanks!
Yes. Closed it. Thanks for the PR!
The checklist in the issue description tracks what packages have been migrated or not from v1/v2 -> v3 format. There were some blockers earlier because of which the migration of some packages could not be done but most of them are hopefully unblocked now.
From the checklist, you see [BLOCKED]
unticked boxes against package names that are yet to be migrated like haproxy, ibmmq, and nagios_xi. The input packages could not be migrated because we did not arrive at a conclusion then; see:
https://github.com/elastic/integrations/pull/8291#discussion_r1371974310
This issue captures all the work done and additional work required to migrate obs-infraobs-integrations owned packages to format_version 3.0.0.
In order to get some packages passing the new package-spec validations, several validation exclude rules were added. For these packages, the underlying issues should be fixed as soon as possible and the exclude rules removed. The fixes required for this are also captured in this issue.
The packages being migrated as part of this issue are:
apache [BLOCKED]PRs:
Issues blocking migration to format_version 3.0.0
event.dataset
in this file. (see: #1). Probable fix could be a breaking change.Issues that need fixing but are currently skipped in 'validation.yml'
Other non-blocking issues that should be fixed in the future
{backend_commit_duration,wal_fsync_duration}.ns.{count,sum}
is set to long but it should be float instead. (ref)geo
mappings are not allowed at root level in ECS (ref)interface
mappings are not allowed at root level in ECS (ref). Also,interface
be nested like observer.egress.interface.*. Please refer ECS docs.os
mappings are not allowed at root level in ECS (ref)geo
mappings are not allowed at root level in ECS (ref)