Skip to content

Commit f7051af

Browse files
dappnodedevbot
andauthored
Bump loki (#76)
* Bump loki to v3.1.1 * Edit upstream version env in Dockerfile * Fix upstream version arg * Update loki config schema --------- Co-authored-by: bot <bot@users.noreply.github.com>
1 parent bc7ee8e commit f7051af

4 files changed

Lines changed: 15 additions & 19 deletions

File tree

dappnode_package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
"repo": "grafana/grafana",
2525
"version": "11.1.0",
2626
"arg": "UPSTREAM_VERSION_GRAFANA"
27+
},
28+
{
29+
"repo": "grafana/loki",
30+
"version": "3.1.1",
31+
"arg": "UPSTREAM_VERSION_LOKI"
2732
}
2833
],
2934
"architectures": ["linux/amd64"],

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ services:
7171
build:
7272
context: loki
7373
args:
74-
UPSTREAM_VERSION: 2.7.3
74+
UPSTREAM_VERSION_LOKI: 3.1.1
7575
command: "-config.file=/etc/loki/local-config.yaml"
7676
restart: always
7777
image: "loki.dms.dnp.dappnode.eth:1.0.1"

loki/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
ARG UPSTREAM_VERSION
2+
ARG UPSTREAM_VERSION_LOKI
33

4-
FROM grafana/loki:${UPSTREAM_VERSION}
4+
FROM grafana/loki:${UPSTREAM_VERSION_LOKI}
55

66
COPY local-config.yaml /etc/loki/local-config.yaml

loki/local-config.yaml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,21 @@ query_range:
2525

2626
schema_config:
2727
configs:
28-
- from: 2020-10-24
29-
store: boltdb-shipper
28+
- from: 2024-04-01
29+
store: tsdb # Change index type to tsdb
3030
object_store: filesystem
31-
schema: v11
31+
schema: v13 # Upgrade schema to v13
3232
index:
3333
prefix: index_
3434
period: 24h
3535

3636
limits_config:
3737
ingestion_rate_mb: 1024
3838
ingestion_burst_size_mb: 1024
39+
allow_structured_metadata: true # Structured metadata allowed with v13 and tsdb
3940

4041
ruler:
4142
alertmanager_url: http://localhost:9093
42-
43-
# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration
44-
# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/
45-
#
46-
# Statistics help us better understand how Loki is used, and they show us performance
47-
# levels for most users. This helps us prioritize features and documentation.
48-
# For more information on what's sent, look at
49-
# https://github.com/grafana/loki/blob/main/pkg/usagestats/stats.go
50-
# Refer to the buildReport method to see what goes into a report.
51-
#
52-
# If you would like to disable reporting, uncomment the following lines:
53-
#analytics:
54-
# reporting_enabled: false
43+
# Uncomment to disable usage statistics reporting
44+
analytics:
45+
reporting_enabled: false

0 commit comments

Comments
 (0)