Difference between revisions of "Promtail"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
** <code>cat [[/etc/promtail/config.yml]]</code> | ** <code>cat [[/etc/promtail/config.yml]]</code> | ||
** <code>[[~/brew/etc/promtail-local-config.yaml]]</code> | ** <code>[[~/brew/etc/promtail-local-config.yaml]]</code> | ||
− | * <code>[[promtail --help]]</code> | + | * <code>[[promtail -version]]</code> |
+ | * <code>[[promtail -help]]</code> | ||
cat /tmp/test.log | promtail --stdin --dry-run --client.url http://127.0.0.1:3100/loki/api/v1/push | cat /tmp/test.log | promtail --stdin --dry-run --client.url http://127.0.0.1:3100/loki/api/v1/push | ||
Line 14: | Line 15: | ||
* <code>[[helm upgrade --install]] promtail grafana/promtail --set "loki.[[serviceName]]=loki"</code> | * <code>[[helm upgrade --install]] promtail grafana/promtail --set "loki.[[serviceName]]=loki"</code> | ||
− | + | == Errors == | |
promtail | promtail | ||
level=info ts=2023-12-19T12:11:36.495393Z caller=[[promtail.go]]:133 msg="Reloading configuration file" | level=info ts=2023-12-19T12:11:36.495393Z caller=[[promtail.go]]:133 msg="Reloading configuration file" | ||
md5sum=332b04dbdadb303cbe75665c1a1e2208 | md5sum=332b04dbdadb303cbe75665c1a1e2208 | ||
level=error ts=2023-12-19T12:11:36.495418Z caller=main.go:170 [[msg="error creating promtail" error="failed to create client manager: at least one client config must be provided"]] | level=error ts=2023-12-19T12:11:36.495418Z caller=main.go:170 [[msg="error creating promtail" error="failed to create client manager: at least one client config must be provided"]] | ||
− | |||
− | |||
== Related == | == Related == |
Latest revision as of 17:13, 9 April 2024
promtail
is an agent which ships the contents of local logs to a private Loki instance or Grafana Cloud.
cat /tmp/test.log | promtail --stdin --dry-run --client.url http://127.0.0.1:3100/loki/api/v1/push
- Helm: https://github.com/grafana/helm-charts/tree/main/charts/promtail
- values.yml https://github.com/grafana/helm-charts/blob/main/charts/promtail/values.yaml
helm upgrade --install promtail grafana/promtail --set "loki.serviceName=loki"
Errors[edit]
promtail level=info ts=2023-12-19T12:11:36.495393Z caller=promtail.go:133 msg="Reloading configuration file" md5sum=332b04dbdadb303cbe75665c1a1e2208 level=error ts=2023-12-19T12:11:36.495418Z caller=main.go:170 msg="error creating promtail" error="failed to create client manager: at least one client config must be provided"
Related[edit]
See also[edit]
- Promtail,
/etc/promtail/config.yml, promtail [ -check-syntax, | -version | -help ]
- Loki, changelog, 3100, promtail, Loki receiver, loki --help
- 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: