Editing Promtail

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 3: Line 3:
  
 
* <code>[[brew install promtail]]</code>
 
* <code>[[brew install promtail]]</code>
* [[Config]]:  
+
* [[Config]]: <code>cat [[/etc/promtail/config.yml]]</code>
** <code>cat [[/etc/promtail/config.yml]]</code>
+
* <code>[[promtail --help]]</code>
** <code>[[~/brew/etc/promtail-local-config.yaml]]</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
 
  
 
* Helm: https://github.com/grafana/helm-charts/tree/main/charts/promtail
 
* Helm: https://github.com/grafana/helm-charts/tree/main/charts/promtail
Line 15: Line 11:
 
* <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 ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: