0.0.0-nightly-20220514025553 • Published 4 years ago

@backstage/plugin-kafka v0.0.0-nightly-20220514025553

Weekly downloads
419
License
Apache-2.0
Repository
github
Last release
4 years ago

Kafka Plugin

Setup

  1. Run:
# From your Backstage root directory
yarn --cwd packages/app add @backstage/plugin-kafka
yarn --cwd packages/backend add @backstage/plugin-kafka-backend
  1. Add the plugin backend:

In a new file named kafka.ts under backend/src/plugins:

import { createRouter } from '@backstage/plugin-kafka-backend';
import { Router } from 'express';
import { PluginEnvironment } from '../types';

export default async function createPlugin(
  env: PluginEnvironment,
): Promise<Router> {
  return await createRouter({
    logger: env.logger,
    config: env.config,
  });
}

And then add to packages/backend/src/index.ts:

// In packages/backend/src/index.ts
import kafka from './plugins/kafka';
// ...
async function main() {
  // ...
  const kafkaEnv = useHotMemoize(module, () => createEnv('kafka'));
  // ...
  apiRouter.use('/kafka', await kafka(kafkaEnv));
  1. Add the plugin as a tab to your service entities:
// In packages/app/src/components/catalog/EntityPage.tsx
import { EntityKafkaContent } from '@backstage/plugin-kafka';

const serviceEntityPage = (
  <EntityLayout>
    {/* other tabs... */}
    <EntityLayout.Route path="/kafka" title="Kafka">
      <EntityKafkaContent />
    </EntityLayout.Route>
  1. Add broker configs for the backend in your app-config.yaml (see kafka-backend for more options):
kafka:
  clientId: backstage
  clusters:
    - name: cluster-name
      brokers:
        - localhost:9092
  1. Add the kafka.apache.org/consumer-groups annotation to your services:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  # ...
  annotations:
    kafka.apache.org/consumer-groups: cluster-name/consumer-group-name
spec:
  type: service

Features

  • List topics offsets and consumer group offsets for configured services.
0.3.35

2 years ago

0.3.34

2 years ago

0.3.34-next.1

2 years ago

0.3.34-next.0

2 years ago

0.3.33

2 years ago

0.3.32

2 years ago

0.3.31

2 years ago

0.3.31-next.2

2 years ago

0.3.31-next.1

2 years ago

0.3.31-next.0

2 years ago

0.3.30

2 years ago

0.3.30-next.3

2 years ago

0.3.30-next.2

2 years ago

0.3.30-next.1

2 years ago

0.3.30-next.0

2 years ago

0.3.29

2 years ago

0.3.29-next.2

2 years ago

0.3.29-next.1

2 years ago

0.3.29-next.0

2 years ago

0.3.28

2 years ago

0.3.28-next.3

2 years ago

0.3.28-next.2

2 years ago

0.3.28-next.1

2 years ago

0.3.20-next.2

3 years ago

0.3.20-next.1

3 years ago

0.3.23-next.0

2 years ago

0.3.28-next.0

2 years ago

0.3.20

3 years ago

0.3.27

2 years ago

0.3.26

2 years ago

0.3.25

2 years ago

0.3.24

2 years ago

0.3.23

2 years ago

0.3.22

2 years ago

0.3.21

2 years ago

0.3.25-next.0

2 years ago

0.3.25-next.1

2 years ago

0.3.25-next.2

2 years ago

0.3.24-next.2

2 years ago

0.3.24-next.1

2 years ago

0.3.24-next.3

2 years ago

0.3.26-next.1

2 years ago

0.3.26-next.2

2 years ago

0.3.26-next.0

2 years ago

0.3.21-next.2

3 years ago

0.3.21-next.0

3 years ago

0.3.21-next.1

3 years ago

0.3.20-next.0

3 years ago

0.3.19-next.3

3 years ago

0.3.19-next.2

3 years ago

0.3.19

3 years ago

0.3.19-next.1

3 years ago

0.3.19-next.0

3 years ago

0.3.18

3 years ago

0.3.18-next.1

3 years ago

0.3.18-next.2

3 years ago

0.3.17-next.3

3 years ago

0.3.17

3 years ago

0.3.18-next.0

3 years ago

0.3.16-next.2

3 years ago

0.3.16-next.1

3 years ago

0.3.16-next.0

3 years ago

0.3.17-next.0

3 years ago

0.3.17-next.1

3 years ago

0.3.17-next.2

3 years ago

0.3.16

3 years ago

0.3.15

3 years ago

0.3.15-next.0

3 years ago

0.3.15-next.1

3 years ago

0.3.15-next.2

3 years ago

0.3.14

3 years ago

0.3.14-next.1

3 years ago

0.3.14-next.2

3 years ago

0.3.12-next.0

3 years ago

0.3.12-next.1

3 years ago

0.3.12-next.2

3 years ago

0.3.12-next.3

3 years ago

0.3.12-next.4

3 years ago

0.3.11-next.0

3 years ago

0.3.11-next.1

3 years ago

0.3.13

3 years ago

0.3.12

3 years ago

0.3.11

3 years ago

0.3.10

3 years ago

0.3.14-next.0

3 years ago

0.3.10-next.0

3 years ago

0.3.10-next.1

3 years ago

0.3.10-next.2

3 years ago

0.3.9-next.1

3 years ago

0.3.9-next.0

3 years ago

0.3.9-next.3

3 years ago

0.3.9-next.2

3 years ago

0.3.9

3 years ago

0.3.8-next.1

4 years ago

0.3.6-next.1

4 years ago

0.3.6-next.0

4 years ago

0.3.8-next.0

4 years ago

0.3.6

4 years ago

0.3.8

3 years ago

0.3.7

4 years ago

0.3.7-next.1

4 years ago

0.3.7-next.0

4 years ago

0.3.7-next.3

4 years ago

0.3.7-next.2

4 years ago

0.3.5

4 years ago

0.3.5-next.2

4 years ago

0.3.5-next.0

4 years ago

0.3.5-next.1

4 years ago

0.3.2

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.4-next.1

4 years ago

0.3.2-next.0

4 years ago

0.3.4-next.0

4 years ago

0.3.1

4 years ago

0.2.27

4 years ago

0.2.26

4 years ago

0.2.25

4 years ago

0.2.24

4 years ago

0.2.23

4 years ago

0.2.22

4 years ago

0.3.0

4 years ago

0.2.27-next.0

4 years ago

0.2.28-next.0

4 years ago

0.2.29

4 years ago

0.2.28

4 years ago

0.2.26-next.0

4 years ago

0.2.21

4 years ago

0.2.20

4 years ago

0.2.19

4 years ago

0.2.18

4 years ago

0.2.17

4 years ago

0.2.16

4 years ago

0.2.15

4 years ago

0.2.14

4 years ago

0.2.13

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago