line 22: field embedded_cache not found in type cache.Config
I am also confused by the name of the config -“loki-local-config.yaml” is it exactly for docker?
line 22: field embedded_cache not found in type cache.Config
I am also confused by the name of the config -“loki-local-config.yaml” is it exactly for docker?
no that is the config for loki.
I recommend you read this and you wont be confused
there is an error in this configuration as reported by Loki in the logs
line 22: field embedded_cache not found in type cache.Config
Comment out that portion
commented
# query_range:
# results_cache:
# cache:
# embedded_cache:
# enabled: true
# distributed: false
# max_size_mb: 100
but Grafana is empty
but they are
I use a config from previous version with added ruler
and frontend
section added
It works but not stores data in local db - only in memory (
target: all
auth_enabled: false
server:
http_listen_port: 3100
grpc_listen_port: 9096
common:
path_prefix: /tmp/loki
storage:
filesystem:
chunks_directory: /tmp/loki/chunks
rules_directory: /tmp/loki/rules
replication_factor: 1
ring:
instance_addr: 127.0.0.1
kvstore:
store: inmemory
schema_config:
configs:
- from: 2020-10-24
store: boltdb-shipper
object_store: filesystem
schema: v11
index:
prefix: index_
period: 24h
ruler:
alertmanager_url: http://alertmanager:9093
frontend:
address: 127.0.0.1
is there a way to add settings to persistent store data to the config?
Read the doc
All kind of storage
I’m new to this - I just wanted to use it by setting the default configuration, but it doesn’t work and reading the configs won’t help me much because I’ll need to study the whole product
Exactly. If you are going to use it and use it well nothing like reading the docu.
What exactly do you mean when you say it doesn’t work
with the config that you offered me, grafana does not see container logs, although they are there (with the old config it shows them but not store in db)
https://community.grafana.com/uploads/short-url/5sTHj8zQxG9gbO4cgFxIpQvORXM.png
but with my configuration from the previous version, which does not save data to disk, logs are present
it would be great if the project had a folder with compose and a working config so that you could run it anywhere without external dependencies (only Loki Prometheus and Grafana) and without additional study of the documentation
is there any other documentation with a really working configuration for Loki for storing logs locally and displaying them in Grafana?
maybe this, otherwise cant help you, others might
Thanks!
I will try to run and test the config
your config is identical to mine see abowe
it has one problem - it does not save data on disk, but temporarily stores it in memory
I think we are going in circles. That is not a problem because that is exactly what I want and it works for me just fine.
You asked for a working config and I gave you mine.
If you want to store it differently for you then change accordingly. I think you are looking for a config you just want to copy and paste.
I’m sorry, but what do you mean by “works”?
works for a couple of hours?
it definitely doesn’t work the way it’s supposed to - it works when all the functions are available!
in this case, the data is not stored on disk, but is stored in memory until it is displaced by other data or the process is restarted - that’s for sure = “does not work”!
I initially described the problem and asked about a fully functional config
Works perfectly well 24 hours a day. What do you mean by “does not work”
look at this
I read it, but it doesn’t help me in any way - I’m not an expert in monitoring - I’m a developer and I use Loki for development and it’s very difficult for me to understand these configurations
The main question is that the product is being released and there is no configuration example that would allow non-specialists to take and immediately use the product without in-depth study of it