Does the current Loki 2.7.4 version support running a separate instance of ruler(-target=ruler)
to remotely query an ingester or store?
We have an all(-target=all)
instance and want to run a separate instance of ruler(-target=ruler)
to perform log queries and monitor alarms, but it seems that this cannot be achieved in the test (did we run it incorrectly?). Can we run the query-frontend/querier component at the same time on the ruler
instance to implement this? (such as -target=ruler,query-frontend,querier
)
Secondly, we saw on github that the upcoming Loki 2.8.x ruler configuration seems to support this (ruler.evaluation.mode: remote
). Should we wait for its release?
Looking forward to your reply, thank you.
The following is the configuration we run:
loki-ruler.yaml
server:
http_listen_port: 13100
grpc_listen_port: 19095
log_level: debug
common:
path_prefix: /data
replication_factor: 1
ring:
kvstore:
store: inmemory
heartbeat_period: 15s
heartbeat_timeout: 1m
instance_addr: 127.0.0.1
limits_config:
ruler_remote_write_disabled: false
max_query_lookback: 168h
split_queries_by_interval: 5m
query_timeout: 10s
#frontend:
# downstream_url: http://loki.domain.com:3100
#querier:
# query_ingesters_within: 168h
# max_concurrent: 10
# query_ingester_only: true
# multi_tenant_queries_enabled: true
ruler:
#external_url:
evaluation_interval: 30s
enable_sharding: false
enable_api: true
storage:
type: local
local:
directory: /data/rules
remote_write:
enabled: false
clients:
local:
url: http://prom_host:prom_port/api/v1/write
remote_timeout: 30s
follow_redirects: true
queue_config:
capacity: 1
batch_send_deadline: 0s
wal:
dir: /data/ruler-wal
min_age: 5m
max_age: 2h
wal_cleaner:
min_age: 6h
enable_alertmanager_discovery: true
alertmanager_refresh_interval: 1m
enable_alertmanager_v2: true
chunk_store_config:
chunk_cache_config:
enable_fifocache: false
write_dedupe_cache_config:
enable_fifocache: false
schema_config:
configs:
- from: 2020-01-01
store: boltdb-shipper
object_store: filesystem
schema: v11
index:
prefix: index_
period: 24h
chunks:
period: 168h
runtime_config:
file: "/data/overrides.yaml"
period: 10s
tracing:
enabled: false```