Grafana Loki

Grafana Loki

Grafana Loki is a log aggregation system designed to store and query logs from all your applications and infrastructure.
env0 has the ability to send all of your deployment logs directly to Grafana Loki.

Setup

In order to set up Granfana Loki you will need to get the following data:

  1. The Host URL
  2. Authorization username and password

Grafana Cloud

If you're using Grafana Cloud follow these steps to get the relevant data:

  1. On the left side menu, go to the Administration tab
  2. Select Data Source and click on the Loki item
  3. In the Settings tab under the HTTP section get the URL
  4. In the Basic Auth Details get the User and the Password

Self Installation of Grafana

  1. The URL should be the URL where Loki is deployed e.g http://localhost:3100
  2. The username and password of the Loki server if it requires basic authentication.

In the env0 platform you will need to configure the following environment variables in any scope you would like to have them:

Environment variable nameDescriptionMandatory
ENV0_LOKI_HOSTThe URL where Loki is locatedYes
ENV0_LOKI_USERNAMEThe Username for authenticationNo
ENV0_LOKI_PASSWORDThe Password for authenticationNo

๐Ÿ“˜

Labels

By default we are adding a label called app with a value of env0