Skip to content

Commit

Permalink
[ci] loki 세팅
Browse files Browse the repository at this point in the history
loki 세팅
  • Loading branch information
YeaChan05 committed Jun 20, 2024
1 parent 055023e commit 3e3d5b2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
37 changes: 16 additions & 21 deletions loki-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@ auth_enabled: false

server:
http_listen_port: 3100
grpc_listen_port: 9095

common:
instance_addr: 127.0.0.1
path_prefix: /tmp/loki
storage:
filesystem:
chunks_directory: /tmp/loki/chunks
rules_directory: /tmp/loki/rules
replication_factor: 1
ring:
kvstore:
store: inmemory
ingester:
lifecycler:
address: 127.0.0.1
ring:
kvstore:
store: inmemory
replication_factor: 1
final_sleep: 0s
chunk_idle_period: 5m
chunk_retain_period: 30s
max_transfer_retries: 0

schema_config:
configs:
Expand All @@ -28,15 +27,11 @@ schema_config:

storage_config:
boltdb_shipper:
active_index_directory: /tmp/loki/index
cache_location: /tmp/loki/boltdb-cache
active_index_directory: /loki/index
cache_location: /loki/boltdb-cache
shared_store: filesystem
filesystem:
directory: /tmp/loki/chunks

compactor:
working_directory: /tmp/loki/compactor
shared_store: filesystem
directory: /loki/chunks

limits_config:
enforce_metric_name: false
Expand All @@ -47,5 +42,5 @@ chunk_store_config:
max_look_back_period: 0s

table_manager:
retention_deletes_enabled: true
retention_period: 168h
retention_deletes_enabled: false
retention_period: 0s
9 changes: 8 additions & 1 deletion promtail-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@ scrape_configs:
- localhost
labels:
job: varlogs
__path__: /var/log/*log
__path__: /var/log/*log
- job_name: applications
static_configs:
- targets:
- localhost
labels:
job: applications
__path__: /path/to/your/application/logs/*.log

0 comments on commit 3e3d5b2

Please sign in to comment.