Difference between revisions of "Grafana Loki"
Jump to navigation
Jump to search
(39 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Wikipedia:Loki]], like [[Prometheus]], but for [[logs]]. ([https://trends.google.com/trends/explore?date=today%205-y&q=Grafana%20Loki&hl=en-US Google trends]) | |
− | [[Wikipedia:Loki]], like [[Prometheus]], but for [[logs]]. | ||
+ | * https://grafana.com/oss/loki/ | ||
− | + | * [[Run Loki using docker compose]] | |
− | [[ | + | * <code>[[brew install loki]]</code> |
+ | * Logs: <code>[[~/brew/var/log/loki.log]]</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 | ||
− | docker ps | + | * <code>[[~/etc/loki-local-config.yaml]]</code> |
+ | |||
+ | * Clients:[[Grafana agent]], [[Promtail]] | ||
+ | * [[Grafana dashboard]]: | ||
+ | |||
+ | * [[Logstash]] | ||
+ | |||
+ | [[docker ps]] | ||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | 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 | + | 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 | 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 | 51c9d5fa1e6d grafana/grafana:latest "/run.sh" 34 seconds ago Up 8 seconds 0.0.0.0:3000->3000/tcp root_grafana_1 | ||
− | + | ||
+ | == Activities == | ||
+ | * Use Grafana demo: https://play.grafana.org/ | ||
== Related terms == | == Related terms == | ||
− | |||
* [[Promtail]] | * [[Promtail]] | ||
* [[Grafana]] | * [[Grafana]] | ||
+ | * [[Thanos]] [[prometheus]] setup | ||
+ | * [[Grafana Loki changelog]] | ||
+ | * <code>3101</code> | ||
== 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)
- Run Loki using docker compose
brew install loki
- Logs:
~/brew/var/log/loki.log
loki --help
curl http://localhost:3100/metrics
curl http://127.0.0.1:3100/api/prom/label
cat /tmp/test.log | promtail --stdin --dry-run --client.url http://127.0.0.1:3100/loki/api/v1/push
- Clients:Grafana agent, Promtail
- Grafana dashboard:
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]
- Use Grafana demo: https://play.grafana.org/
Related terms[edit]
- Promtail
- Grafana
- Thanos prometheus setup
- Grafana Loki changelog
3101
See also[edit]
- Grafana Loki
- Logs, Log collector, log management, log explorer, Linux logging,
docker logs
,minikube logs
, Vector, Logstash, Filebeat, promtail, logfmt, Elasticsearch, fluentd, Mezmo (LogDNA), Scalyr, Loggly, Loki,tlog, cockpit
, NXLog, Winston, Amazon CloudWatch Logs Insights, Logz.io, Logflare, Coralogix
Advertising: