Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpbennett committed Jul 15, 2024
1 parent ecf5aa6 commit bb7a6e1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
23 changes: 10 additions & 13 deletions kubernetes/apps/monitoring/loki/config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,31 @@ metadata:
name: loki-config
namespace: monitoring
data:
loki.yaml: |-
loki-local-config.yaml: |
auth_enabled: false
server:
http_listen_port: 3100
ingester:
lifecycler:
address: 127.0.0.1
ring:
kvstore:
store: inmemory
replication_factor: 1
chunk_idle_period: 3m
chunk_retain_period: 1m
chunk_idle_period: 5m
chunk_retain_period: 30s
max_transfer_retries: 0
schema_config:
configs:
- from: 2020-01-01
store: boltdb-shipper
- from: 2020-10-24
store: boltdb
object_store: filesystem
schema: v11
index:
prefix: index_
period: 24h
period: 168h
storage_config:
boltdb_shipper:
active_index_directory: /loki/index
cache_location: /loki/boltdb-cache
shared_store: filesystem
boltdb:
directory: /loki/index
filesystem:
directory: /loki/chunks
limits_config:
Expand All @@ -41,5 +38,5 @@ data:
chunk_store_config:
max_look_back_period: 0s
table_manager:
retention_deletes_enabled: true
retention_period: 168h # Retain logs for 7 days
retention_deletes_enabled: false
retention_period: 0s
17 changes: 9 additions & 8 deletions kubernetes/apps/monitoring/loki/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Deployment
metadata:
name: loki
namespace: monitoring
labels:
app: loki
spec:
replicas: 1
selector:
Expand All @@ -15,19 +17,18 @@ spec:
spec:
containers:
- name: loki
image: grafana/loki:latest
args:
- -config.file=/etc/loki/loki.yaml
image: grafana/loki:2.7.1
ports:
- containerPort: 3100
volumeMounts:
- name: config-volume
- name: loki-config
mountPath: /etc/loki
readOnly: true
- name: loki-storage
mountPath: /loki
ports:
- containerPort: 3100
args:
- -config.file=/etc/loki/loki-local-config.yaml
volumes:
- name: config-volume
- name: loki-config
configMap:
name: loki-config
- name: loki-storage
Expand Down

0 comments on commit bb7a6e1

Please sign in to comment.