backstage / community-plugins

Community plugins for Backstage
Apache License 2.0
148 stars 157 forks source link

🔧 Repository: Kafka Plugin #1224

Open CsarGrnds opened 2 weeks ago

CsarGrnds commented 2 weeks ago

📜 Description

I can't make this plugin works with the new Backstage backend.

I followed the instructions and even recreate a Kafka environment locally but i get a 404 error:

404

when I checked using yarn tsc comannd this is what I see:

yarn tsc

Backstage version: 1.30.2

👍 Expected behavior

I should be able to see Kafka information.

👎 Current Behavior

Getting 404 error.

👟 Reproduction steps

I followed the instructions here: https://github.com/backstage/community-plugins/tree/main/workspaces/kafka/plugins/kafka But not sure if the plugins is compatible with the new Backstage backend

📃 Provide the context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

No, but I'm happy to collaborate on a PR with someone else

nickboldt commented 6 days ago

https://github.com/backstage/community-plugins/tree/main/workspaces/kafka/plugins/kafka#setup needs to be updated to reference the new backend system, eg., see linguist or azure devops plugins for new instructions to migrate to kafka.

@awanlin ^ can you help?

junaidaj86 commented 2 days ago

First install the plugin

From your Backstage root directory

yarn --cwd packages/app add @backstage-community/plugin-kafka yarn --cwd packages/backend add @backstage-community/plugin-kafka-backend

then Add the backend in index.ts backend.add(import('@backstage-community/plugin-kafka-backend/alpha'))

then add the front-end in EntityPage.tsx import { EntityKafkaContent } from '@backstage/plugin-kafka';

<EntityLayout.Route path="/kafka" title="kafka"

</EntityLayout.Route>

It works for me

junaidaj86 commented 2 days ago

I've encountered an issue where the partition is always rendered as zero when displaying the data.

image