%%
date:: [[2024-07-10]]
parent::
%%
# [[How to deploy Grafana Loki]]
![[How to deploy Grafana Loki.svg]]
[[Grafana Loki]] has three deployment modes: *monolithic, simple scalable*, and *microservices*. The three modes vary in complexity and structure.
- *Monolithic mode*: simplest way to get started, runs everything as a single binary or Docker image
- *Simple scalable*: deploy via Helm chart, separates read, write, backend components so you can scale them separately, the middle ground, scales up to ingesting a few TBs of logs per day
- *Microservices mode*: (if you have >a few TBs of logs/day) designed for Kubernetes, run components as separate services, most scalable, most complex, deploy via Helm chart, most flexible and reliable for production
## Deploying Loki on [[Kubernetes]]
The recommended way to deploy Loki on Kubernetes clusters is by using [[Helm for Kubernetes|Helm]]. See the [[Loki Helm chart]] for information on how to do this.
## Deploying Loki [[Cloud Provider|on the cloud]]
- [[Deploying Loki on AWS]]
- [[Deploying Loki on GCP GKE via Helm]]
## Running Loki at scale
Here are some best practices for running Loki at scale, with Staff Software Engineer [[Poyzan Taneli]]:
<iframe width="560" height="315" src="https://www.youtube.com/embed/lAr0GwuZHiw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
## Resources
- [[How to install and deploy Loki in monolithic mode using Docker Compose]]
-
%%
# Text Elements
# Drawing
```json
{
"type": "excalidraw",
"version": 2,
"source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/2.1.4",
"elements": [
{
"id": "4y8R7iOA",
"type": "text",
"x": 118.49495565891266,
"y": -333.44393157958984,
"width": 3.8599853515625,
"height": 24,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"roundness": null,
"seed": 967149026,
"version": 2,
"versionNonce": 939059582,
"isDeleted": true,
"boundElements": null,
"updated": 1713723615080,
"link": null,
"locked": false,
"text": "",
"rawText": "",
"fontSize": 20,
"fontFamily": 4,
"textAlign": "left",
"verticalAlign": "top",
"containerId": null,
"originalText": "",
"lineHeight": 1.2
}
],
"appState": {
"theme": "dark",
"viewBackgroundColor": "#ffffff",
"currentItemStrokeColor": "#1e1e1e",
"currentItemBackgroundColor": "transparent",
"currentItemFillStyle": "solid",
"currentItemStrokeWidth": 2,
"currentItemStrokeStyle": "solid",
"currentItemRoughness": 1,
"currentItemOpacity": 100,
"currentItemFontFamily": 4,
"currentItemFontSize": 20,
"currentItemTextAlign": "left",
"currentItemStartArrowhead": null,
"currentItemEndArrowhead": "arrow",
"scrollX": 583.2388916015625,
"scrollY": 573.6323852539062,
"zoom": {
"value": 1
},
"currentItemRoundness": "round",
"gridSize": null,
"gridColor": {
"Bold": "#C9C9C9FF",
"Regular": "#EDEDEDFF"
},
"currentStrokeOptions": null,
"previousGridSize": null,
"frameRendering": {
"enabled": true,
"clip": true,
"name": true,
"outline": true
}
},
"files": {}
}
```
%%