Logging: rate limit fronted logging endpoint (#29272)

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
This commit is contained in:
Domas
2020-12-09 17:22:24 +02:00
committed by GitHub
parent 924212b42b
commit 7d9a528184
8 changed files with 168 additions and 9 deletions

View File

@@ -882,6 +882,8 @@ Enable daily rotation of files, valid options are `false` or `true`. Default is
Maximum number of days to keep log files. Default is `7`.
<hr>
## [log.syslog]
Only applicable when "syslog" used in `[log]` mode.
@@ -908,6 +910,34 @@ Syslog tag. By default, the process's `argv[0]` is used.
<hr>
## [log.frontend]
### enabled
Sentry javascript agent is initialized. Default is `false`.
### sentry_dsn
Sentry DSN if you want to send events to Sentry
### custom_endpoint
Custom HTTP endpoint to send events captured by the Sentry agent to. Default, `/log`, will log the events to stdout.
### sample_rate
Rate of events to be reported between `0` (none) and `1` (all, default), float.
### log_endpoint_requests_per_second_limit
Requests per second limit enforced per an extended period, for Grafana backend log ingestion endpoint, `/log`. Default is `3`.
### log_endpoint_burst_limit
Maximum requests accepted per short interval of time for Grafana backend log ingestion endpoint, `/log`. Default is `15`.
<hr>
## [quota]
Set quotas to `-1` to make unlimited.