Add deployment
This commit is contained in:
@@ -48,7 +48,8 @@ public sealed class KafkaConsumerLagCollector : BackgroundService
|
||||
private async Task CollectGroupLagAsync(string groupId, CancellationToken ct)
|
||||
{
|
||||
var adminConfig = new AdminClientConfig
|
||||
{ BootstrapServers = _kafkaOptions.BootstrapServers };
|
||||
{ BootstrapServers = _kafkaOptions.BootstrapServers }
|
||||
.ApplySecurity(_kafkaOptions);
|
||||
|
||||
using var admin = new AdminClientBuilder(adminConfig).Build();
|
||||
|
||||
@@ -69,7 +70,7 @@ public sealed class KafkaConsumerLagCollector : BackgroundService
|
||||
{
|
||||
BootstrapServers = _kafkaOptions.BootstrapServers,
|
||||
GroupId = $"__lag-probe",
|
||||
}).Build();
|
||||
}.ApplySecurity(_kafkaOptions)).Build();
|
||||
|
||||
long totalLag = 0;
|
||||
foreach (var tpo in partitions)
|
||||
|
||||
Reference in New Issue
Block a user