Skip to content

Commit b79d347

Browse files
committed
Enable Loki for alert state
1 parent 78d29d4 commit b79d347

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

grafana/grafana.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
#[unified_alerting.state_history]
2-
#enabled = true
1+
2+
# https://grafana.com/docs/grafana/latest/alerting/set-up/configure-alert-state-history/
3+
[unified_alerting.state_history]
4+
enabled = true
5+
6+
loki_remote_url = http://loki:3100
7+
backend = loki
38

49
#backend = multiple
510
#primary = loki
6-
#loki_remote_url = http://loki:3100
711

812
#secondaries = prometheus
913
#prometheus_target_datasource_uid = DS_PROMETHEUS_UID

loki/loki.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ schema_config:
3030
ruler:
3131
alertmanager_url: http://localhost:9093
3232

33+
limits_config:
34+
split_queries_by_interval: "24h"
35+
max_query_parallelism: 32
3336
# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration
3437
# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/
3538
#
@@ -41,4 +44,4 @@ ruler:
4144
#
4245
# If you would like to disable reporting, uncomment the following lines:
4346
#analytics:
44-
# reporting_enabled: false
47+
# reporting_enabled: false

0 commit comments

Comments
 (0)