Skip to content

Commit

Permalink
Fix reference config and change some e2e defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
weeco committed Jun 8, 2021
1 parent ec31cfd commit 01bedfc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
27 changes: 17 additions & 10 deletions docs/reference-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ logger:
level: info

kafka:
brokers: [""]
brokers: []
clientId: "kminion"
rackId: ""
tls:
Expand All @@ -35,9 +35,9 @@ kafka:

sasl:
# Whether or not SASL authentication will be used for authentication
enabled: true
enabled: false
# Username to use for PLAIN or SCRAM mechanism
username:
username: ""
# Password to use for PLAIN or SCRAM mechanism
password: ""
# Mechanism to use for SASL Authentication. Valid values are PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, GSSAPI
Expand All @@ -58,6 +58,12 @@ minion:
enabled: true
# Mode specifies whether we export consumer group offsets using the Admin API or by consuming the internal
# __consumer_offsets topic. Both modes have their advantages and disadvantages.
# * adminApi:
# - Useful for managed kafka clusters that do not provide access to the offsets topic.
# * offsetsTopic
# - Enables kminion_kafka_consumer_group_offset_commits_total metrics.
# - Processing the offsetsTopic requires slightly more memory and cpu than using the adminApi. The amount depends on the
# size and throughput of the offsets topic.
scrapeMode: adminApi # Valid values: adminApi, offsetsTopic
# Granularity can be per topic or per partition. If you want to reduce the number of exported metric series and
# you aren't interested in per partition lags you could choose "topic" where all partition lags will be summed
Expand All @@ -66,7 +72,7 @@ minion:
# AllowedGroups are regex strings of group ids that shall be exported
# You can specify allowed groups by providing literals like "my-consumergroup-name" or by providing regex expressions
# like "/internal-.*/".
allowedGroups: []
allowedGroups: [".*"]
# IgnoredGroups are regex strings of group ids that shall be ignored/skipped when exporting metrics. Ignored groups
# take precedence over allowed groups.
ignoredGroups: []
Expand All @@ -77,21 +83,21 @@ minion:
# AllowedTopics are regex strings of topic names whose topic metrics that shall be exported.
# You can specify allowed topics by providing literals like "my-topic-name" or by providing regex expressions
# like "/internal-.*/".
allowedTopics: []

allowedTopics: [".*"]
# IgnoredTopics are regex strings of topic names that shall be ignored/skipped when exporting metrics. Ignored topics
# take precedence over allowed topics.
ignoredTopics: []
logDirs:
# Enabled specifies whether log dirs shall be scraped and exported or not. This should be disabled for clusters prior
# to version 1.0.0 as describing log dirs was not supported back then.
enabled: false
enabled: true

# EndToEnd Metrics
# When enabled, kminion creates a topic which it produces to and consumes from, to measure various advanced metrics. See docs for more info
endToEnd:
enabled: true
probeInterval: 800ms # how often to send end-to-end test messages
enabled: false
# How often to send end-to-end test messages
probeInterval: 100ms
topicManagement:
# You can disable topic management, without disabling the testing feature.
# Only makes sense if you have multiple kminion instances, and for some reason only want one of them to create/configure the topic
Expand All @@ -105,7 +111,8 @@ minion:
# How often kminion checks its topic to validate configuration, partition count, and partition assignments
reconciliationInterval: 10m

# Useful for monitoring the performance of acks (best combined with 'producer.requiredAcks' set to 'all')
# Depending on the desired monitoring (e.g. you want to alert on broker failure vs. cluster that is not writable)
# you may choose replication factor 1 or 3 most commonly.
replicationFactor: 1

# Rarely makes sense to change this, but maybe if you want some sort of cheap load test?
Expand Down
2 changes: 1 addition & 1 deletion e2e/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Config struct {

func (c *Config) SetDefaults() {
c.Enabled = false
c.ProbeInterval = 2 * time.Second
c.ProbeInterval = 100 * time.Millisecond
c.TopicManagement.SetDefaults()
c.Producer.SetDefaults()
c.Consumer.SetDefaults()
Expand Down
1 change: 1 addition & 0 deletions e2e/config_topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type EndToEndTopicConfig struct {
func (c *EndToEndTopicConfig) SetDefaults() {
c.Enabled = true
c.Name = "kminion-end-to-end"
c.ReplicationFactor = 1
c.ReconciliationInterval = 10 * time.Minute
}

Expand Down

0 comments on commit 01bedfc

Please sign in to comment.