Skip to main content
Version: 3.x


In this section, we will learn how to configure the Dashboard.

KafkaFlow provides a Dashboard where you can visualize information related to your consumers and use all operations available on KafkaFlow.Admin.WebApi.


It is important to note that the Dashboard runs, shows information, and manages the consumers on all application instances. This means that if you have 10 machines running your application, the Dashboard will run in every instance. Any operation will affect the consumer in all the machines.

Adding the Dashboard

Install the following packages:

dotnet add package KafkaFlow.Microsoft.DependencyInjection
dotnet add package KafkaFlow.Admin
dotnet add package KafkaFlow.Admin.WebApi
dotnet add package KafkaFlow.Admin.Dashboard

You can configure the Dashboard during the configuration, as shown in the following example (built using .NET 6).

using KafkaFlow;
using KafkaFlow.Admin.Dashboard;

var builder = WebApplication.CreateBuilder(args);

.AddKafka(kafka => kafka
.AddCluster(cluster => cluster
.WithBrokers(new[] { "localhost:9092" })
.AddConsumer(consumer => consumer
.EnableTelemetry("kafka-flow.admin") // you can use the same topic used in EnableAdminMessages, if need it

var app = builder.Build();


var kafkaBus = app.Services.CreateKafkaBus();
await kafkaBus.StartAsync();

await app.RunAsync();

The dashboard UI will be available at /kafka-flow and is refreshed every 5 seconds with telemetry data available at the endpoint /kafka-flow/telemetry.