Installing Promtail on ubuntu

Install Promtail Adding Repo PROMTAIL_VERSION=$(curl -s “https://api.github.com/repos/grafana/loki/releases/latest” | grep -Po ‘”tag_name”: “v\K[0-9.]+’) Create a new directory for storing Promtail binary and configuration file. sudo mkdir /opt/promtail Run the following command to download Promtail archive from releases page of the Loki repository. sudo wget -qO /opt/promtail/promtail.gz “https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-amd64.zip” Extract binary file from archive: sudo gunzip /opt/promtail/promtail.gz Set […]