🔧 Repository: Kafka Plugin
📜 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:
when I checked using yarn tsc comannd this is what I see:
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?
- [X] I have read the Code of Conduct
Are you willing to submit PR?
No, but I'm happy to collaborate on a PR with someone else
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?
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
I've encountered an issue where the partition is always rendered as zero when displaying the data.
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'))
Thanks @junaidaj86, that solve my issue I don't see the error in logs anymore