Compare commits

..

2 Commits

2 changed files with 30 additions and 6 deletions

View File

@@ -1,8 +1,12 @@
---
auth_enabled: false
server:
http_listen_port: 3100
http_server_read_timeout: 1m
http_server_write_timeout: 1m
grpc_listen_port: 9095
log_level: info
log_format: logfmt
common:
instance_addr: 127.0.0.1
@@ -14,7 +18,15 @@ common:
replication_factor: 1
ring:
kvstore:
store: inmemory
store: inmemory # ✅ Use inmemory for single-node setups
limits_config:
reject_old_samples: true
reject_old_samples_max_age: 168h
ingestion_rate_mb: 10
ingestion_burst_size_mb: 20
max_query_parallelism: 8
max_query_lookback: 168h
schema_config:
configs:
@@ -26,5 +38,12 @@ schema_config:
prefix: index_
period: 24h
table_manager:
retention_deletes_enabled: true
retention_period: 168h
ruler:
alertmanager_url: http://localhost:9093
rule_path: /loki/rules
enable_alertmanager_v2: true
enable_api: true

View File

@@ -65,7 +65,11 @@ services:
loki:
container_name: loki
image: docker.io/grafana/loki:3.5.0
command: "-config.file=/etc/loki/config.yaml" # Tells Grafana Loki to start with the config file.
command:
- "-config.file=/etc/loki/config.yaml" # Tells Grafana Loki to start with the config file.
- "-config.expand-env=true"
ports:
- "3100:3100"
volumes:
- ./config/loki-config.yaml:/etc/loki/config.yaml:ro
- data_loki:/loki:rw
@@ -73,7 +77,7 @@ services:
- grafana-prometheus
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3100/ready"]
test: ["CMD", "wget", "--spider", "-q", "http://loki:3100/ready"]
interval: 10s # check every 10 seconds
timeout: 5s # wait max 5 seconds per check
retries: 5 # mark as unhealthy after 5 failures
@@ -81,7 +85,7 @@ services:
https_portal:
container_name: https_portal
image: "steveltn/https-portal:1.21"
restart: unless-stopped
restart: always
networks:
- grafana-prometheus
ports:
@@ -95,6 +99,7 @@ services:
CLIENT_MAX_BODY_SIZE: 0
# FORCE_RENEW: 'true'
DOMAINS: 'grafana.phx-erp.de -> https://grafana:3000, prometheus.phx-erp.de -> https://prometheus:9090'
# loki-logs.phx-erp.de -> http://localhost:3100
volumes:
- ./https_portal/data:/var/lib/https-portal # ssl_certs, vhost.d, htdocs
- ./https_portal/log:/var/log/nginx # nginx logs