D
D
DEXPE2022-03-18 11:34:58
ubuntu
DEXPE, 2022-03-18 11:34:58

Why is LOKI not working in grafana - zabbix?

Help people!
I ran into such a problem, I connected Loki to Grafana, installed promtail and registered the config . This config
/etc/promtail/promtail.yaml

:

server:
  http_listen_port: 9080
  grpc_listen_port: 0

positions:
  filename: /tmp/positions.yaml

clients:
  - url: http://192.168.*.*:3100/loki/api/v1/push

scrape_configs:
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: varlogs
      __path__: /var/log/*log
- job_name: grafanalogs
  static_configs:
  - targets:
      - localhost
    labels:
      job: grafana
      __path__: /var/log/grafana/grafana.log

- Restarted everything (loki,promtail,grafana). Everything works in Promtail, all services work without errors BUT!
62344362bf866581173849.png

I turn into a graphuna and get this ->
623443a207ee2645595873.png

And in fact:
6234442ac7216306006401.jpeg

ASK FOR HELP!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DEXPE, 2022-03-18
@DEXPE

* I give the answer myself, maybe it will come in handy for someone!
If you have the same, wait, grafana processes for a long time and does not display data immediately! everything is up and running great.
commands like:
systemctl restart promtail.service
or
systemctl restart demon*** do not work immediately !

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question