[#56] Add loki
All checks were successful
DCO action / DCO (pull_request) Successful in 43s

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
Alexander Chuprov 2023-11-15 16:08:15 +03:00
parent 9c9ec639f0
commit 40454b5507
6 changed files with 26 additions and 3 deletions

8
.env
View file

@ -12,11 +12,11 @@ NEOGO_VERSION=0.103.0
NEOGO_IMAGE=nspccdev/neo-go NEOGO_IMAGE=nspccdev/neo-go
# FrostFS InnerRing nodes # FrostFS InnerRing nodes
IR_VERSION=365a7ca0 IR_VERSION=0.37.0-rc.1-93-g364f835b
IR_IMAGE=truecloudlab/frostfs-ir IR_IMAGE=truecloudlab/frostfs-ir
# FrostFS Storage nodes # FrostFS Storage nodes
NODE_VERSION=365a7ca0 NODE_VERSION=0.37.0-rc.1-93-g364f835b
NODE_IMAGE=truecloudlab/frostfs-storage NODE_IMAGE=truecloudlab/frostfs-storage
# NATS Server # NATS Server
@ -64,3 +64,7 @@ PROMETHEUS_IMAGE=prom/prometheus
# Grafana versions # Grafana versions
GRAFANA_VERSION=9.5.6 GRAFANA_VERSION=9.5.6
GRAFANA_IMAGE=grafana/grafana GRAFANA_IMAGE=grafana/grafana
# Loki versions
LOKI_VERSION=2.9.1
LOKI_IMAGE=grafana/loki

View file

@ -1 +1,2 @@
IPV4_PREFIX.122 grafana.LOCAL_DOMAIN IPV4_PREFIX.122 grafana.LOCAL_DOMAIN
IPV4_PREFIX.123 loki.LOCAL_DOMAIN

View file

@ -17,6 +17,14 @@ services:
stop_signal: SIGKILL stop_signal: SIGKILL
env_file: [ ".env", ".int_test.env" ] env_file: [ ".env", ".int_test.env" ]
loki:
image: ${LOKI_IMAGE}:${LOKI_VERSION}
command: -config.file=/etc/loki/local-config.yaml
networks:
grafana_int:
internet:
ipv4_address: ${IPV4_PREFIX}.123
networks: networks:
grafana_int: grafana_int:
internet: internet:

View file

@ -6,3 +6,8 @@ datasources:
access: proxy access: proxy
orgId: 1 orgId: 1
url: http://prometheus:9090 url: http://prometheus:9090
- name: Loki
type: loki
access: proxy
orgId: 1
url: http://loki:3100

View file

@ -1,6 +1,11 @@
# Logger section # Logger section
logger: logger:
level: debug # Minimum enabled logging level level: debug # Minimum enabled logging level
loki:
enabled: true
endpoint: "loki.frostfs.devenv:3100/api/prom/push"
max_batch_delay: 1s
max_batch_size: 200
# Profiler section # Profiler section
pprof: pprof:
@ -14,7 +19,7 @@ prometheus:
address: :9090 # Server address address: :9090 # Server address
shutdown_timeout: 15s # Timeout for metrics HTTP server graceful shutdown shutdown_timeout: 15s # Timeout for metrics HTTP server graceful shutdown
# Application tracing section # Application tracing section
tracing: tracing:
enabled: true enabled: true
exporter: otlp_grpc exporter: otlp_grpc