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.
-
Create a service account required to access Yandex Object Storage:
yc iam service-account create --name <service_account_name>
-
Assign the
storage.uploader
andstorage.viewer
roles to the service account. -
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
-
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.
-
Click Install.
-
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
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.
Helm chart | Version | Pull-command | Documentation |
---|---|---|---|
yandex-cloud/grafana/loki/chart/loki | 1.2.0-7 | Open |
Docker image | Version | Pull-command |
---|---|---|
yandex-cloud/grafana/loki/loki1724340579580929049903575878834428036439571203368 | 2.9.8 | |
yandex-cloud/grafana/loki/memcached-exporter1724340579580929049903575878834428036439571203368 | v0.13.0 | |
yandex-cloud/grafana/loki/memcached1724340579580929049903575878834428036439571203368 | 1.6.21-alpine | |
yandex-cloud/grafana/loki/nginx-unprivileged1724340579580929049903575878834428036439571203368 | 1.20.2-alpine | |
yandex-cloud/grafana/loki/promtail1724340579580929049903575878834428036439571203368 | 3.0.0 |