Update docs to include configurable interval

This commit is contained in:
2024-04-16 22:21:46 +02:00
parent 9e9676d4e4
commit 98e79b927d
2 changed files with 14 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ defmodule KafkaexLagExporter.ConsumerOffsetRunner do
endpoints = clients[:kafka_client][:endpoints] || [{"redpanda", 29_092}]
interval =
System.get_env("KAFKA_EX_INTERVAL", "5000")
System.get_env("KAFKA_EX_INTERVAL_MS", "5000")
|> String.to_integer()
Logger.info("Reveived Kafka endpoints: #{inspect(endpoints)}")