Promtail:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
(→安裝) |
(→設定) |
||
第11行: | 第11行: | ||
== 設定 == | == 設定 == | ||
在<code>/etc/promtail/config.yml</code>裡面: | 在<code>/etc/promtail/config.yml</code>裡面 把預設的位置改成[[Loki]]的位置 : | ||
<syntaxhighlight lang="yaml"> | |||
clients: | |||
- url: http://localhost:3100/loki/api/v1/push | |||
</syntaxhighlight> | |||
== 相關連結 == | == 相關連結 == |
2023年6月28日 (三) 07:15的版本
Promtail是Log传输软件,属于Grafana的Loki生态系。
安装
在Ubuntu上可以透过官方的APT repository安装:
sudo curl -L -o /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key; echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list; sudo apt update; sudo apt install -y promtail; sudo apt clean
设定
在/etc/promtail/config.yml
里面把预设的位置改成Loki的位置:
clients:
- url: http://localhost:3100/loki/api/v1/push
相关连结
外部链接
- 官方网站 (英文)