-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Document Promtail global rate limiting #5737
Merged
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
ba30afa
Docs: Document Promtail global rate limiting
KMiller-Grafana b1e3403
Update docs/sources/clients/promtail/configuration.md
KMiller-Grafana e92c5ca
Revise strings that explain the new configuration parameters
KMiller-Grafana 618bdd8
For rate limiting, limit_config becomes limits_config
KMiller-Grafana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,9 @@ clients: | |
scrape_configs: | ||
- [<scrape_config>] | ||
|
||
# Configures global limits for this instance of Promtail | ||
[limit_config: <limit_config>] | ||
KMiller-Grafana marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# Configures how tailed targets will be watched. | ||
[target_config: <target_config>] | ||
|
||
|
@@ -1756,6 +1759,26 @@ scrape_configs: | |
target_label: 'container' | ||
``` | ||
|
||
## limit_config | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks good @KMiller-Grafana, and we should align this with the flags registered here:
KMiller-Grafana marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
The optional `limit_config` block configures global limits for this instance of Promtail. | ||
KMiller-Grafana marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
```yaml | ||
# When true, enforces rate limiting on this instance of Promtail. | ||
[readline_rate_enabled: <bool> | default = false] | ||
|
||
# The rate limit in log lines per second that this instance of Promtail may push to Loki. | ||
[readline_rate: <int> | default = 10000] | ||
|
||
# The cap in the quantity of burst lines that this instance of Promtail may push | ||
# to Loki. | ||
[readline_burst: <int> | default = 10000] | ||
|
||
# When true, exceeding the rate limit causes this instance of Promtail to discard | ||
# log lines, rather than sending them to Loki. When false, exceeding the rate limit | ||
# causes this instance of Promtail to temporarily hold off on sending the log lines and retry later. | ||
[readline_rate_drop: <bool> | default = true] | ||
``` | ||
|
||
## target_config | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi, thank you very much for the exquisite documentation, this PR changed the limit_config name
#5707
Promtail: Rename config name limit_config to limits_config #5707