# KafkaConsumerSettings

- Kind: `class`
- Package: [Aspire.Confluent.Kafka](/reference/api/csharp/aspire.confluent.kafka.md)
- Version: `13.3.0`
- Namespace: `Aspire.Confluent.Kafka`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Confluent.Kafka/KafkaConsumerSettings.cs)

Provides the client configuration settings for connecting to a Kafka message broker to consume messages.

## Definition

```csharp
namespace Aspire.Confluent.Kafka;

public sealed class KafkaConsumerSettings
{
    // ...
}
```

## Constructors

- [KafkaConsumerSettings](/reference/api/csharp/aspire.confluent.kafka/kafkaconsumersettings/constructors.md#constructor)

## Properties

- [Config](/reference/api/csharp/aspire.confluent.kafka/kafkaconsumersettings/properties.md#config) : `ConsumerConfig` `get` -- Gets the configuration settings for the Kafka consumer.
- [ConnectionString](/reference/api/csharp/aspire.confluent.kafka/kafkaconsumersettings/properties.md#connectionstring) : `string?` `get; set` -- Gets or sets the connection string of the Kafka server to connect to.
- [DisableHealthChecks](/reference/api/csharp/aspire.confluent.kafka/kafkaconsumersettings/properties.md#disablehealthchecks) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the Kafka health check is disabled or not.
- [DisableMetrics](/reference/api/csharp/aspire.confluent.kafka/kafkaconsumersettings/properties.md#disablemetrics) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are enabled or not.
- [DisableTracing](/reference/api/csharp/aspire.confluent.kafka/kafkaconsumersettings/properties.md#disabletracing) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
