「Promtail」:修訂間差異
跳至導覽
跳至搜尋
第8行: | 第8行: | ||
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 | 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 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== 設定 == | |||
在<code>/etc/promtail/config.yml</code>裡面: | |||
== 相關連結 == | == 相關連結 == |
於 2023年6月28日 (三) 07:13 的修訂
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
裡面:
相關連結
外部連結
- 官方網站 (英文)