Difference between revisions of "Promtail"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
Promtail is an agent which ships the contents of local logs to a private Loki instance or Grafana Cloud. | Promtail is an agent which ships the contents of local logs to a private Loki instance or Grafana Cloud. | ||
+ | |||
+ | cat /etc/promtail/config.yml | ||
+ | server: | ||
+ | http_listen_port: 9080 | ||
+ | grpc_listen_port: 0 | ||
+ | |||
+ | positions: | ||
+ | filename: /tmp/positions.yaml | ||
+ | |||
+ | clients: | ||
+ | - url: http://loki:3100/loki/api/v1/push | ||
+ | |||
+ | scrape_configs: | ||
+ | - job_name: system | ||
+ | static_configs: | ||
+ | - targets: | ||
+ | - localhost | ||
+ | labels: | ||
+ | job: varlogs | ||
+ | __path__: /var/log/*log | ||
Revision as of 13:02, 23 November 2020
Promtail is an agent which ships the contents of local logs to a private Loki instance or Grafana Cloud.
cat /etc/promtail/config.yml server: http_listen_port: 9080 grpc_listen_port: 0 positions: filename: /tmp/positions.yaml clients: - url: http://loki:3100/loki/api/v1/push scrape_configs: - job_name: system static_configs: - targets: - localhost labels: job: varlogs __path__: /var/log/*log
See also
- Grafana, Grafana datasources, Grafana Alerting, Grafana installation, Grafana Labs, Grafana Changelog,
Grafana logs
,docker-compose.yml (Grafana)
, Grafana Loki, Grafana Tanka, StatsD and Graphite,grafana-cli
, Loki, LogQL, Grafana Enterprise, Grafana Cloud, Grafana alerts, Amazon Grafana, Grafana OnCall, Grafana Tempo, Grafana Mimir, Grafana agent, plugins, Terraform, Grafana dashboards,/etc/grafana/grafana.ini
, Grafana Pyroscope - Files:
tail
,mtail
,promtail
,aws logs tail
,ktail, stern, kubectl logs
- 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: