Skip to content

Instantly share code, notes, and snippets.

@unixfox
Created December 21, 2022 08:56
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 unixfox/1f302d05a8fbbf38330b17a3ecb88294 to your computer and use it in GitHub Desktop.
Save unixfox/1f302d05a8fbbf38330b17a3ecb88294 to your computer and use it in GitHub Desktop.
loki example config
auth_enabled: false
server:
http_listen_port: 3100
grpc_listen_port: 9096
common:
path_prefix: /data/loki
ingester:
#path_prefix: /tmp/loki
chunk_idle_period: 3m
chunk_block_size: 262144
chunk_retain_period: 1m
max_transfer_retries: 0
lifecycler:
ring:
kvstore:
store: inmemory
replication_factor: 1
storage_config:
aws:
s3forcepathstyle: true
bucketnames:
endpoint:
access_key_id:
secret_access_key:
#region:
insecure: false
sse_encryption: false
boltdb_shipper:
active_index_directory: /data/index
shared_store: s3
cache_location: /data/boltdb-cache
schema_config:
configs:
- from: 2020-07-01
store: boltdb-shipper
object_store: s3
schema: v11
index:
prefix: loki_
period: 24h
compactor:
working_directory: /data/compactor
shared_store: s3
retention_enabled: true
retention_delete_delay: 720h
chunk_store_config:
max_look_back_period: 0s
table_manager:
retention_deletes_enabled: false
retention_period: 0s
ruler:
alertmanager_url: http://localhost:9093
# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration
# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/
#
# Statistics help us better understand how Loki is used, and they show us performance
# levels for most users. This helps us prioritize features and documentation.
# For more information on what's sent, look at
# https://github.com/grafana/loki/blob/main/pkg/usagestats/stats.go
# Refer to the buildReport method to see what goes into a report.
#
# If you would like to disable reporting, uncomment the following lines:
#analytics:
# reporting_enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment