Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ services:
image: "stakers-metrics.dms.dnp.dappnode.eth:1.0.3"
environment:
- DEBUG_MODE=false
loki:
build:
context: loki
args:
UPSTREAM_VERSION: 2.7.3
command: "-config.file=/etc/loki/local-config.yaml"
restart: always
image: "loki.dms.dnp.dappnode.eth:1.0.1"
volumes:
grafana_data: {}
prometheus_data: {}
Expand Down
8 changes: 8 additions & 0 deletions grafana/datasource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ datasources:
basicAuth: false
isDefault: true
editable: true
- name: loki
type: loki
access: proxy
orgId: 1
url: http://loki:3100
basicAuth: false
isDefault: false
editable: true
6 changes: 6 additions & 0 deletions loki/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

ARG UPSTREAM_VERSION

FROM grafana/loki:${UPSTREAM_VERSION}

COPY local-config.yaml /etc/loki/local-config.yaml
54 changes: 54 additions & 0 deletions loki/local-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
auth_enabled: false

server:
http_listen_port: 3100
grpc_listen_port: 9096

common:
instance_addr: 127.0.0.1
path_prefix: /tmp/loki
storage:
filesystem:
chunks_directory: /tmp/loki/chunks
rules_directory: /tmp/loki/rules
replication_factor: 1
ring:
kvstore:
store: inmemory

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: filesystem
schema: v11
index:
prefix: index_
period: 24h

limits_config:
ingestion_rate_mb: 1024
ingestion_burst_size_mb: 1024

ruler:
alertmanager_url: http://localhost:9093

# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration
# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/
#
# Statistics help us better understand how Loki is used, and they show us performance
# levels for most users. This helps us prioritize features and documentation.
# For more information on what's sent, look at
# https://github.com/grafana/loki/blob/main/pkg/usagestats/stats.go
# Refer to the buildReport method to see what goes into a report.
#
# If you would like to disable reporting, uncomment the following lines:
#analytics:
# reporting_enabled: false