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

[O11y][Kafka] Migration for visualizations to lens in kibana 8.8.0 #5594

Merged

Conversation

harnish-elastic
Copy link
Contributor

@harnish-elastic harnish-elastic commented Mar 20, 2023

  • Enhancement

What does this PR do?

  • Migrate visualizations to lens for Kafka integration package

  • [Kafka Metrics] visualization contains 4 multiple metrics which are not supported in Lens so we manually migrated it into 4 separate legacy metrics and also changed the size for the legacy metric to make other visualizations best fit in the dashboard.

  • Statistics for Kafka Lens migration:

Kafka Dashboards Before Migration     After Migration    
  Search Lens Visualization Search Lens Visualization
[Logs Kafka] Overview 2 0 2 2 2 0
[Metrics Kafka] Overview 0 0 9 0 13 0
  2 0 11 2 15 0

Checklist

  • I have added an entry to my package's changelog.yml file.
  • I have verified that panels are populated with data.
  • I have verified that panels are not distorted after being migrated to lens.
  • I have updated screenshots of dashboard.
  • I have verified that data count are matching and panel aggregations are same as before.

Author's checklist

  • Migrated panels should be removed from visualization folder.
  • Migrated visualizations are populating in current Kibana version 8.8.0 itself.

Related issues

Note: - Please refer the following before migrated screenshot for [Logs Kafka] Overview dashboard, because the current screenshot is not updated.

image

@elasticmachine
Copy link

elasticmachine commented Mar 20, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-07-27T09:48:15.136+0000

  • Duration: 15 min 40 sec

Test stats 🧪

Test Results
Failed 0
Passed 20
Skipped 0
Total 20

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

elasticmachine commented Mar 20, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (1/1) 💚
Files 100.0% (1/1) 💚
Classes 100.0% (1/1) 💚
Methods 72.222% (13/18)
Lines 77.778% (56/72)
Conditionals 100.0% (0/0) 💚

@harnish-elastic harnish-elastic marked this pull request as ready for review March 20, 2023 18:44
@harnish-elastic harnish-elastic requested a review from a team as a code owner March 20, 2023 18:44
@kush-elastic kush-elastic added enhancement New feature or request Integration:kafka Kafka v8.6.0 Team:Service-Integrations Label for the Service Integrations team labels Mar 20, 2023
Copy link
Contributor

@agithomas agithomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!.

@lalit-satapathy , please note this is a steep jump in the version. We had considered this in this past. However do you want to reassess?

Copy link
Collaborator

@kush-elastic kush-elastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@agithomas
Copy link
Contributor

"Support multiple metrics in one chart using lens". Is the panel migrated to Lens or retained with old Viz panel type?

@harnish-elastic
Copy link
Contributor Author

"Support multiple metrics in one chart using lens". Is the panel migrated to Lens or retained with old Viz panel type?

It's migrated into lens. We have created 4 individual lens charts.

@agithomas
Copy link
Contributor

In the description, i read Due to not having last bucket value support in lens, we are not able to migrate into lens

The two vis that are not migrated are because of this limitation? Please confirm

@lalit-satapathy
Copy link
Collaborator

LGTM!.

@lalit-satapathy , please note this is a steep jump in the version. We had considered this in this past. However do you want to reassess?

Why kafka dashboard requires a higher kibana version?

@harnish-elastic
Copy link
Contributor Author

In the description, i read Due to not having last bucket value support in lens, we are not able to migrate into lens

The two vis that are not migrated are because of this limitation? Please confirm

Yes, two vis are not migrated because of Due to not having last bucket value support in lens, we are not able to migrate into lens

@harnish-elastic
Copy link
Contributor Author

LGTM!.
@lalit-satapathy , please note this is a steep jump in the version. We had considered this in this past. However do you want to reassess?

Why kafka dashboard requires a higher kibana version?

@lalit-satapathy For the Consumer Partition Reassignments, visualization contains bucket script so we need to manually migrate it into Lens. In which there are if else conditions which we are able to migrate to kibana version 8.6.0. Please refer the below screenshots for more information.

Before migration:

image

After migration:

image

@harnish-elastic
Copy link
Contributor Author

@agithomas Updated the PR with requested changes. Thanks!

@agithomas
Copy link
Contributor

@lalit-satapathy , are you good to approve the PR?

@agithomas
Copy link
Contributor

@lalit-satapathy , are you good to approve the PR?

@lalit-satapathy , can you please confirm?

@agithomas agithomas mentioned this pull request Apr 25, 2023
36 tasks
@botelastic
Copy link

botelastic bot commented May 10, 2023

Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

@botelastic
Copy link

botelastic bot commented Jun 10, 2023

Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Jun 10, 2023
@botelastic
Copy link

botelastic bot commented Jul 10, 2023

Hi! This PR has been stale for a while and we're going to close it as part of our cleanup procedure. We appreciate your contribution and would like to apologize if we have not been able to review it, due to the current heavy load of the team. Feel free to re-open this PR if you think it should stay open and is worth rebasing. Thank you for your contribution!

@botelastic botelastic bot closed this Jul 10, 2023
@rajvi-patel-22 rajvi-patel-22 requested a review from a team as a code owner July 10, 2023 06:54
@botelastic botelastic bot removed the Stalled label Jul 10, 2023
@lalit-satapathy
Copy link
Collaborator

@harnish-elastic,

With Kafka package version now upgraded to 8.8.0, what needs to be done here?

@harnish-elastic
Copy link
Contributor Author

@harnish-elastic,

With Kafka package version now upgraded to 8.8.0, what needs to be done here?

We can start taking this up since it is upgraded to 8.8.0

…into lens_migration-kafka-8.6.0

Conflicts:
	packages/kafka/changelog.yml
	packages/kafka/manifest.yml
@harnish-elastic
Copy link
Contributor Author

@lalit-satapathy @agithomas Migrated the Kafka dashboard and exported to Kibana 8.7.0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the overview dashboard please have the below changes made

  1. Single stat representing the brokers must be the first one in the first row
  2. Have consumer partition reassignments and Kafka broker table in the second row
  3. Have kafka topic chart and table in the thrid row
  4. Have consumer group chart and table in the fourth row

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agithomas, We have created an enhancement issue for this task and updated the changes in this PR. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the logs overview dashboard include the below changes

  1. Have the legend for the Logs over time added to the bottom of the visualisation instead of right side
  2. Reduce the space allocated for log.level and more space added for the message

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agithomas, We have created an enhancement issue for this task and updated the changes in this PR. Thanks!

@agithomas
Copy link
Contributor

Please change the title of this PR. It is no longer migration to 8.6.0

@harnish-elastic harnish-elastic changed the title [O11y][Kafka] Lens migration for visualizations to kibana version 8.6.0 [O11y][Kafka] Migration for visualizations to lens in kibana 8.8.0 Jul 25, 2023
Copy link
Contributor

@agithomas agithomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@harnish-elastic harnish-elastic merged commit 4e64865 into elastic:main Jul 28, 2023
1 check passed
@elasticmachine
Copy link

Package kafka - 1.9.1 containing this change is available at https://epr.elastic.co/search?package=kafka

gizas pushed a commit that referenced this pull request Sep 5, 2023
…5594)

* Migrate kafka visualizations to lens in Kibana 8.6.0

* update changelog.yml

* migrate pending visualizations to lens

* export dashboards to 8.7.0

* address review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Integration:kafka Kafka Team:Service-Integrations Label for the Service Integrations team v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[O11y][Kafka] Update layout of dashboards [O11y][Kafka] Lens Migration
6 participants