Skip to content

Commit

Permalink
converter: reflect kafka fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rfratto committed Jan 4, 2024
1 parent cf96514 commit 08bf578
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"github.com/grafana/agent/component/discovery"
"github.com/grafana/agent/component/prometheus/exporter/kafka"
"github.com/grafana/agent/pkg/integrations/kafka_exporter"
"github.com/grafana/river/rivertypes"
)

func (b *IntegrationsConfigBuilder) appendKafkaExporter(config *kafka_exporter.Config, instanceKey *string) discovery.Exports {
Expand All @@ -17,7 +18,7 @@ func toKafkaExporter(config *kafka_exporter.Config) *kafka.Arguments {
UseSASL: config.UseSASL,
UseSASLHandshake: config.UseSASLHandshake,
SASLUsername: config.SASLUsername,
SASLPassword: config.SASLPassword,
SASLPassword: rivertypes.Secret(config.SASLPassword),
SASLMechanism: config.SASLMechanism,
UseTLS: config.UseTLS,
CAFile: config.CAFile,
Expand Down

0 comments on commit 08bf578

Please sign in to comment.