Commit 5c07dd8d authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Corrige retención por defecto, aumenta recursos

Aplica los ajustes correctos para definir la retención y eliminar
algunos warning.

Aumenta recursos por defecto.
parent 76545f50
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ LOKI_ANALYTICS_REPORTING_ENABLED=true
LOKI_SERVER_LOG_LEVEL=warn
LOKI_QUERY_SCHEDULER_MAX_OUTSTANDING_REQUESTS_PER_TENANT=2048
LOKI_RULER_EXTERNAL_URL=https://alertmanager.change.me
LOKI_COMPACTOR_RETENTION_DELETE_DELAY=720h
LOKI_LIMITS_CONFIG_RETENTION_PERIOD=720h

LOKI_CONFIG_FILE_PATH=/etc/loki/loki.yaml
DATA_VOL_NAME=loki-vol
+11 −1
Original line number Diff line number Diff line
@@ -42,4 +42,14 @@ compactor:
  working_directory: /loki/compactor
  shared_store: filesystem
  retention_enabled: true
  retention_delete_delay: ${LOKI_COMPACTOR_RETENTION_DELETE_DELAY}

limits_config:
  retention_period: ${LOKI_LIMITS_CONFIG_RETENTION_PERIOD}
  query_timeout: 5m

chunk_store_config:
  chunk_cache_config:
    embedded_cache:
      enabled: true
      max_size_mb: 50
      ttl: 1h
+4 −4
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ services:
      LOKI_SERVER_LOG_LEVEL:
      LOKI_QUERY_SCHEDULER_MAX_OUTSTANDING_REQUESTS_PER_TENANT:
      LOKI_RULER_EXTERNAL_URL:
      LOKI_COMPACTOR_RETENTION_DELETE_DELAY:
      LOKI_LIMITS_CONFIG_RETENTION_PERIOD:
    networks:
      log-net:
      metric-net:
@@ -32,11 +32,11 @@ services:
        delay: ${UPDATE_DELAY:-1m}
      resources:
        limits:
          cpus: '${RESOURCES_LIMITS_CPUS:-1}'
          memory: ${RESOURCES_LIMITS_MEMORY:-256M}
          cpus: '${RESOURCES_LIMITS_CPUS:-2}'
          memory: ${RESOURCES_LIMITS_MEMORY:-512M}
        reservations:
          cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.1}'
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-128M}
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-256M}

networks:
  log-net: