Skip to content

Instantly share code, notes, and snippets.

@wardbekker
Created March 6, 2020 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wardbekker/701d9b6e6421da328c4c47990b732bc7 to your computer and use it in GitHub Desktop.
Save wardbekker/701d9b6e6421da328c4c47990b732bc7 to your computer and use it in GitHub Desktop.
Promtail command options
Usage of ./promtail-darwin-amd64:
-config.file string:
yaml file to load
-log.level value:
Only log messages with the given severity or above. Valid levels: [debug, info, warn, error] (default info)
-target.sync-period duration:
Period to resync directories being watched and files being tailed. (default 10s)
-version:
Print this builds version information (default false)
Client:
-client.batch-size-bytes int:
Maximum batch size to accrue before sending. (default 102400)
-client.batch-wait duration:
Maximum wait period before sending batch. (default 1s)
-client.external-labels value:
list of external labels to add to each log (e.g: --client.external-labels=lb1=v1,lb2=v2)
-client.max-backoff duration:
Maximum backoff time between retries. (default 5s)
-client.max-retries int:
Maximum number of retires when sending batches. (default 5)
-client.min-backoff duration:
Initial backoff time between retries. (default 100ms)
-client.tenant-id string:
Tenant ID to use when pushing logs to Loki.
-client.timeout duration:
Maximum time to wait for server to respond to a request (default 10s)
-client.url value:
URL of log server
Positions:
-positions.file string:
Location to read/write positions from. (default /var/log/positions.yaml)
-positions.ignore-invalid-yaml:
whether to ignore & later overwrite positions files that are corrupted (default false)
-positions.sync-period duration:
Period with this to sync the position file. (default 10s)
Server:
-server.graceful-shutdown-timeout duration:
Timeout for graceful shutdowns (default 30s)
-server.grpc-listen-address string:
gRPC server listen address.
-server.grpc-listen-port int:
gRPC server listen port. (default 9095)
-server.grpc-max-concurrent-streams uint:
Limit on the number of concurrent streams for gRPC calls (0 = unlimited) (default 100)
-server.grpc-max-recv-msg-size-bytes int:
Limit on the size of a gRPC message this server can receive (bytes). (default 4194304)
-server.grpc-max-send-msg-size-bytes int:
Limit on the size of a gRPC message this server can send (bytes). (default 4194304)
-server.http-idle-timeout duration:
Idle timeout for HTTP server (default 2m0s)
-server.http-listen-address string:
HTTP server listen address.
-server.http-listen-port int:
HTTP server listen port. (default 80)
-server.http-read-timeout duration:
Read timeout for HTTP server (default 30s)
-server.http-write-timeout duration:
Write timeout for HTTP server (default 30s)
-server.path-prefix string:
Base path to serve all API routes from (e.g. /v1/)
-server.register-instrumentation:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment