Difference between revisions of "Grafana Loki"

From wikieduonline
Jump to navigation Jump to search
 
(17 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
* https://grafana.com/oss/loki/
 
* https://grafana.com/oss/loki/
  
* [[Loki using docker compose]]
+
* [[Run Loki using docker compose]]
 
* <code>[[brew install loki]]</code>
 
* <code>[[brew install loki]]</code>
* http://localhost:[[3100]][[/metrics]]
+
* Logs: <code>[[~/brew/var/log/loki.log]]</code>
* <code>[[curl]] http://127.0.0.1:3100[[/api/prom/label]]</code>
+
* <code>[[loki --help]]</code>
 +
* <code>[[curl http://localhost:3100/metrics]]</code>
 +
* <code>[[curl http://127.0.0.1:3100]][[/api/prom/label]]</code>
 +
cat /tmp/test.log | [[promtail --stdin]] --dry-run --client.url http://127.0.0.1:3100/loki/api/v1/push
 +
 
 +
 
 +
* <code>[[~/etc/loki-local-config.yaml]]</code>
 +
 
 +
* Clients:[[Grafana agent]], [[Promtail]]
 +
* [[Grafana dashboard]]:
 +
 
 +
* [[Logstash]]
  
 
  [[docker ps]]
 
  [[docker ps]]
Line 15: Line 26:
  
  
 +
 +
== Activities ==
 +
* Use Grafana demo: https://play.grafana.org/
  
 
== Related terms ==
 
== Related terms ==
Line 24: Line 38:
  
 
== See also ==
 
== See also ==
* {{Grafana}}
+
* {{Grafana Loki}}
 
* {{logs}}
 
* {{logs}}
  
 
[[Category:Grafana]]
 
[[Category:Grafana]]

Latest revision as of 16:43, 9 April 2024

Wikipedia:Loki, like Prometheus, but for logs. (Google trends)

cat /tmp/test.log | promtail --stdin --dry-run --client.url http://127.0.0.1:3100/loki/api/v1/push


docker ps
CONTAINER ID        IMAGE                    COMMAND                  CREATED             STATUS              PORTS                    NAMES
6d1c55887373        grafana/promtail:1.6.0   "/usr/bin/promtail -…"   34 seconds ago      Up 8 seconds                                 root_promtail_1
93eec3ca0727        grafana/loki:1.6.0       "/usr/bin/loki -conf…"   34 seconds ago      Up 8 seconds        0.0.0.0:3100->3100/tcp   root_loki_1
51c9d5fa1e6d        grafana/grafana:latest   "/run.sh"                34 seconds ago      Up 8 seconds        0.0.0.0:3000->3000/tcp   root_grafana_1


Activities[edit]

Related terms[edit]

See also[edit]

Advertising: