Prometheus: Loki store in s3
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -162,11 +162,13 @@ services:
|
||||
loki:
|
||||
image: grafana/loki:latest
|
||||
restart: unless-stopped
|
||||
command: -config.file=/etc/loki/local-config.yaml
|
||||
command: -config.file=/etc/loki/loki.yaml
|
||||
volumes:
|
||||
- "loki_data:/loki"
|
||||
- ./loki.yml:/etc/loki/loki.yaml:ro,Z
|
||||
- loki_data:/loki
|
||||
networks:
|
||||
- backend
|
||||
- default
|
||||
|
||||
promtail:
|
||||
image: grafana/promtail:latest
|
||||
|
51
coreos-config/plays/services/prometheus/loki.yml
Normal file
51
coreos-config/plays/services/prometheus/loki.yml
Normal file
@ -0,0 +1,51 @@
|
||||
auth_enabled: false
|
||||
|
||||
server:
|
||||
http_listen_port: 3100
|
||||
grpc_listen_port: 9096
|
||||
|
||||
query_range:
|
||||
results_cache:
|
||||
cache:
|
||||
embedded_cache:
|
||||
enabled: true
|
||||
max_size_mb: 100
|
||||
|
||||
schema_config:
|
||||
configs:
|
||||
- from: 2020-10-24
|
||||
store: boltdb-shipper
|
||||
object_store: aws
|
||||
schema: v11
|
||||
index:
|
||||
prefix: index_
|
||||
period: 24h
|
||||
|
||||
common:
|
||||
path_prefix: /loki
|
||||
storage:
|
||||
s3:
|
||||
endpoint: s3.tobiasmanske.de
|
||||
bucketnames: loki-data
|
||||
access_key_id: "{{ loki.s3.access_key }}"
|
||||
secret_access_key: "{{ loki.s3.secret_key }}"
|
||||
s3forcepathstyle: true
|
||||
replication_factor: 1
|
||||
ring:
|
||||
kvstore:
|
||||
store: inmemory
|
||||
|
||||
compactor:
|
||||
working_directory: /loki/compactor
|
||||
shared_store: s3
|
||||
|
||||
storage_config:
|
||||
boltdb_shipper:
|
||||
active_index_directory: /loki/active
|
||||
cache_location: /loki/cache
|
||||
cache_ttl: 24h
|
||||
resync_interval: 5s
|
||||
shared_store: s3
|
||||
aws:
|
||||
s3: "s3://{{ loki.s3.access_key }}:{{ loki.s3.secret_key }}@s3.tobiasmanske.de.:443/loki-data"
|
||||
s3forcepathstyle: true
|
@ -1,5 +1,5 @@
|
||||
positions:
|
||||
filename: /tmp/positions.yaml
|
||||
filename: /positions.yaml
|
||||
|
||||
clients:
|
||||
- url: http://loki:3100/loki/api/v1/push
|
||||
|
Reference in New Issue
Block a user