Updated November 20, 2024

Loki is a horizontally scalable, highly available, multi-tenant log aggregation and storage system inspired by Prometheus. It doesn’t index the contents of logs, but rather a set of labels for each log stream.

Deployment instructions
  1. Create a service account required to access Yandex Object Storage:

    yc iam service-account create --name <service_account_name>
    
  2. Assign the storage.uploader and storage.viewer roles to the service account.

  3. Create a static access key for the service account in JSON format and save it to the sa-key.json file:

    yc iam access-key create \
       --service-account-name=<service_account_name> \
       --format=json > sa-key.json
    
  4. Create a bucket in Object Storage.

  5. Configure the application:

    • Namespace: Select a namespace or create a new one.
    • Application name: Specify the app name.
    • Bucket name: Specify the name of the bucket in Object Storage.
    • Static access key: Paste the contents of the sa-key.json file.
    • Install Promtail: Leave the option enabled to deliver local logs to the Grafana Loki instance using the Promtail agent. This agent is usually used for applications that require regular monitoring.
  6. Click Install.

  7. Wait for the application to change its status to Deployed.

Once deployed, Loki will be available inside the Managed Service for Kubernetes cluster at the following address:

http://<Loki_gateway_service_name>.<namespace>.svc.cluster.local

To learn the namespace and name of the Loki gateway service, run this command:

kubectl get service -A | grep distributed-gateway

Result:

test-namespace   loki-loki-distributed-gateway   ClusterIP   10.96.168.88   <none>   80/TCP    15m
Billing type
Free
Type
Kubernetes® Application
Category
Developer tools
Publisher
Yandex Cloud
Use cases
  • Aggregating and storing logs
Technical support

Yandex Cloud technical support is available 24/7. The types of requests you can submit and the appropriate response time depend on your pricing plan. You can switch to the paid support plan in the management console. You can learn more about the technical support terms here.

Product composition
Helm chartVersion
Pull-command
Documentation
yandex-cloud/grafana/loki/chart/loki1.2.0-7Open
Docker imageVersion
Pull-command
yandex-cloud/grafana/loki/loki17243405795809290499035758788344280364395712033682.9.8
yandex-cloud/grafana/loki/memcached-exporter1724340579580929049903575878834428036439571203368v0.13.0
yandex-cloud/grafana/loki/memcached17243405795809290499035758788344280364395712033681.6.21-alpine
yandex-cloud/grafana/loki/nginx-unprivileged17243405795809290499035758788344280364395712033681.20.2-alpine
yandex-cloud/grafana/loki/promtail17243405795809290499035758788344280364395712033683.0.0
Terms
By using this product you agree to the Yandex Cloud Marketplace Terms of Service
Billing type
Free
Type
Kubernetes® Application
Category
Developer tools
Publisher
Yandex Cloud