Skip to content

Commit

Permalink
Merge pull request #2961 from redpanda-data/mqtt-url-docs
Browse files Browse the repository at this point in the history
fix(mqtt): improve docs for `urls` field
  • Loading branch information
ooesili authored Oct 25, 2024
2 parents 6caad40 + 960296c commit 96f9a2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/modules/components/pages/inputs/mqtt.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ You can access these metadata fields using xref:configuration:interpolation.adoc
=== `urls`
A list of URLs to connect to. If an item of the list contains commas it will be expanded into multiple URLs.
A list of URLs to connect to. The format should be `scheme://host:port` where `scheme` is one of `tcp`, `ssl`, or `ws`, `host` is the ip-address (or hostname) and `port` is the port on which the broker is accepting connections. If an item of the list contains commas it will be expanded into multiple URLs.
*Type*: `array`
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/components/pages/outputs/mqtt.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ This output benefits from sending multiple messages in flight in parallel for im
=== `urls`
A list of URLs to connect to. If an item of the list contains commas it will be expanded into multiple URLs.
A list of URLs to connect to. The format should be `scheme://host:port` where `scheme` is one of `tcp`, `ssl`, or `ws`, `host` is the ip-address (or hostname) and `port` is the port on which the broker is accepting connections. If an item of the list contains commas it will be expanded into multiple URLs.
*Type*: `array`
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/mqtt/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const (
func clientFields() []*service.ConfigField {
return []*service.ConfigField{
service.NewURLListField(msFieldClientURLs).
Description("A list of URLs to connect to. If an item of the list contains commas it will be expanded into multiple URLs.").
Description("A list of URLs to connect to. The format should be `scheme://host:port` where `scheme` is one of `tcp`, `ssl`, or `ws`, `host` is the ip-address (or hostname) and `port` is the port on which the broker is accepting connections. If an item of the list contains commas it will be expanded into multiple URLs.").
Example([]string{"tcp://localhost:1883"}),
service.NewStringField(msFieldClientClientID).
Description("An identifier for the client connection.").
Expand Down

0 comments on commit 96f9a2e

Please sign in to comment.