Skip to content

add loki outpt support#39

Merged
benjaminhuo merged 2 commits into
fluent:masterfrom
wanjunlei:master
Dec 25, 2020
Merged

add loki outpt support#39
benjaminhuo merged 2 commits into
fluent:masterfrom
wanjunlei:master

Conversation

@wanjunlei
Copy link
Copy Markdown
Collaborator

Signed-off-by: wanjunlei wanjunlei@yunify.com

Signed-off-by: wanjunlei <wanjunlei@yunify.com>
// The loki output plugin, allows to ingest your records into a Loki service.
type Loki struct {
// Loki hostname or IP address.
Host string `json:"host,omitempty"`
Copy link
Copy Markdown
Member

@benjaminhuo benjaminhuo Dec 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Host shouldn't be allowed to be empty.
And other items having default values should be set to a default value if they're empty.

image

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the item is empty, the fluent bit will use the default value, it is no need to set a default value in the config file.

Signed-off-by: wanjunlei <wanjunlei@yunify.com>
@benjaminhuo benjaminhuo merged commit 497ecfe into fluent:master Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants