Skip to content

Commit

Permalink
reverings the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpbennett committed Jul 15, 2024
1 parent 54141dc commit cdc9d28
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 32 deletions.
30 changes: 11 additions & 19 deletions kubernetes/apps/monitoring/loki/config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,40 @@ kind: ConfigMap
metadata:
name: loki-config
namespace: monitoring
labels:
app: loki
data:
loki-local-config.yaml: |
auth_enabled: false
server:
http_listen_port: ${LOKI_HTTP_PORT}
common:
path_prefix: ${LOKI_STORAGE_DIRECTORY}
replication_factor: 1
storage:
filesystem:
directory: ${LOKI_STORAGE_DIRECTORY}/chunks
ring:
kvstore:
store: inmemory
http_listen_port: 3100
ingester:
lifecycler:
ring:
kvstore:
store: inmemory
replication_factor: 1
chunk_idle_period: 5m
chunk_block_size: 262144
chunk_retain_period: 30s
max_transfer_retries: 0
schema_config:
configs:
- from: 2020-10-24
store: boltdb-shipper
store: boltdb
object_store: filesystem
schema: v11
index:
prefix: index_
period: 24h
period: 168h
storage_config:
boltdb_shipper:
active_index_directory: ${LOKI_STORAGE_DIRECTORY}/boltdb-shipper-active
cache_location: ${LOKI_STORAGE_DIRECTORY}/boltdb-shipper-cache
shared_store: filesystem
boltdb:
directory: /loki/index
filesystem:
directory: /loki/chunks
limits_config:
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
chunk_store_config:
max_look_back_period: 0s
table_manager:
retention_deletes_enabled: false
retention_period: 0s
24 changes: 11 additions & 13 deletions kubernetes/apps/monitoring/loki/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,22 @@ spec:
spec:
containers:
- name: loki
image: grafana/loki:3.1.0
args:
- -config.file=/etc/loki/loki-local-config.yaml
- -config.expand-env=true
image: grafana/loki:2.7.1
ports:
- containerPort: 3100
env:
- name: LOKI_STORAGE_DIRECTORY
value: /data/loki
- name: LOKI_HTTP_PORT
value: "3100"
volumeMounts:
- name: config
- name: loki-config
mountPath: /etc/loki
- name: data
mountPath: /data
- name: loki-storage
mountPath: /loki
args:
- -config.file=/etc/loki/loki-local-config.yaml
- -config.expand-env=true
securityContext:
runAsUser: 0
runAsGroup: 0
volumes:
- name: config
- name: loki-config
configMap:
name: loki-config
- name: loki-storage
Expand Down

0 comments on commit cdc9d28

Please sign in to comment.