community-plugins icon indicating copy to clipboard operation
community-plugins copied to clipboard

🔧 Repository: Kafka Plugin

Open CsarGrnds opened this issue 1 year ago • 4 comments

📜 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?

  • [X] I checked and didn't find similar issue

🏢 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

CsarGrnds avatar Sep 16 '24 02:09 CsarGrnds

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?

nickboldt avatar Sep 24 '24 15:09 nickboldt

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" > <EntityKafkaContent /> </EntityLayout.Route>

It works for me

junaidaj86 avatar Sep 28 '24 03:09 junaidaj86

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

junaidaj86 avatar Sep 28 '24 03:09 junaidaj86

it looks like the installation docs aren't updated for the new Backend system. Please for installing the backend follow what @junaidaj86 suggested:

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

// add the following to your backend/index.ts
backend.add(import('@backstage-community/plugin-kafka-backend/alpha'))

vinzscam avatar Oct 08 '24 20:10 vinzscam

Thanks @junaidaj86, that solve my issue I don't see the error in logs anymore

CsarGrnds avatar Oct 17 '24 15:10 CsarGrnds