Skip to content

Commit 88aca62

Browse files
author
Donna-Marie Smith
committed
Updated migration Process
1 parent 0da4966 commit 88aca62

6 files changed

Lines changed: 76 additions & 86 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: "Migrate to Grafana Alloy"
3+
linkTitle: "Migrate to Grafana Alloy"
4+
description: "The steps to Migrate Promtail to Grafana Alloy."
5+
weight: 2
6+
---
7+
8+
# {{% param title %}}
9+
10+
This guide describes how to migrate from a Promtail Installation to Grafana Alloy.
11+
12+
## Perform Migration
13+
14+
{{% alert title="Note" %}}
15+
These steps will need to be performed on all application servers that host a Promtail service.
16+
{{% / alert %}}
17+
18+
1. Log in to the application server.
19+
1. Run Windows PowerShell as Administrator.
20+
1. Change the directory to the folder where Promtail is running from, e.g. `cd C:\ProgramData\Cortex\Observability\Promtail`.
21+
1. Remove the current Promtail installation by executing the following command:
22+
23+
``` powershell
24+
.\Remove-Promtail.ps1
25+
```
26+
27+
1. Click *Yes* when prompted for confirmation that you wish to remove the service.
28+
1. Click *OK* when the successful removal of the Promtail service is confirmed.
29+
1. Open a File Explorer and navigate to the folder where Promtail was running from, e.g. `C:\ProgramData\Cortex\Observability\Promtail`
30+
1. In File Explorer, navigate to the extracted alloy-installer-windows-amd64.exe folder created as part of [Make Artefacts Available][].
31+
1. Copy the alloy-installer-windows-amd64.exe into a suitable location, e.g. `C:\ProgramData\Cortex\Observability\Grafana Alloy`.
32+
1. In File Explorer, navigate to the extracted Grafana.Alloy.Install folder created as part of [Make Artefacts Available][].
33+
1. Copy the contents of the folder to the same location as the previously copied alloy-installer-windows-amd64.exe.
34+
1. In Powershell change the location to the folder that the artefacts have been copied to, e.g. `cd C:\ProgramData\Cortex\Observability\Grafana Alloy`.
35+
1. Install Grafana Alloy by executing the following command and passing in the correct path for the `promtail-local-config.yaml`:
36+
37+
``` powershell
38+
.\Migrate-Promtail-To-Alloy.ps1 -PromtailConfig "C:\ProgramData\Cortex\Observability\Promtail\promtail-local-config.yaml"
39+
```
40+
41+
1. When prompted, enter the credentials that the Grafana Alloy Service should run as.
42+
1. When prompted to enter the bearer token, leave it blank and press Enter.
43+
1. Once the migration has completed, delete the now obsolete Promtail directory e.g. `C:\ProgramData\Cortex\Observability\Promtail`.
44+
45+
## Configure Grafana Alloy
46+
47+
1. Open the `config.alloy` configuration file, which is located in the folder alongside the `alloy-installer-windows-amd64.exe` file.
48+
1. Delete the line containing `bearer_token_file` in the `loki.write "default"` > `endpoint` section, which can be found at the end of the file.
49+
1. Save the file.
50+
1. Open `services.msc`.
51+
1. Locate the `Alloy` service.
52+
1. Right click on the service name and select `Restart`. If the service is not already running, select `Start`.
53+
54+
## Next Steps?
55+
56+
1. [Try it out][]
57+
58+
[Make Artefacts Available]: {{< url path="Cortex.Guides.UpgradeGuides.UpgradeObservability.3.0.0to4.0.0.Cloud.Grafana.MakeArtefactsAvailable" >}}
59+
[Try it out]: {{< url path="Cortex.Guides.UpgradeGuides.UpgradeObservability.3.0.0to4.0.0.Cloud.Grafana.TryItOut" >}}

content/en/docs/2025.9/Guides/upgrade-guides/upgrade-observability/3.0.0-to-4.0.0/cloud/grafana/prerequisites.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ weight: 1
2121

2222
1. Download the required artefacts to a folder on your machine:
2323

24-
* [Promtail 3.0.0][] archive.
25-
* [Promtail Install][] archive.
24+
* [Grafana Alloy 1.10.2][] archive.
25+
* [Grafana Alloy Install][] archive.
2626

27-
1. Extract the downloaded `promtail-windows-amd64.exe` archive to a folder with the same name.
28-
1. Extract the downloaded `Promtail.Install` archive to a folder with the same name.
27+
1. Extract the downloaded `alloy-installer-windows-amd64.exe` archive to a folder with the same name.
28+
1. Extract the downloaded `Grafana.Alloy.Install` archive to a folder with the same name.
2929

3030
## Backup Old Files
3131

@@ -37,8 +37,8 @@ On each Application Server that Promtail is installed on:
3737

3838
## Next Steps?
3939

40-
1. [Upgrade Promtail][]
40+
1. [Migrate Promtail to Grafana Alloy][Migrate to Alloy]
4141

42-
[Promtail 3.0.0]: {{< url path="Grafana.SelfManaged.Downloads.Promtail.3.0.0.PromtailInstallZip" >}}
43-
[Promtail Install]: {{< url path="GitHub.Cortex.Observability.3.0.0.PromtailInstallZip" >}}
44-
[Upgrade Promtail]: {{< url path="Cortex.Guides.UpgradeGuides.UpgradeObservability.2.2.0to3.0.0.Cloud.Grafana.UpgradePromtail" >}}
42+
[Grafana Alloy 1.10.2]: {{< url path="Grafana.Products.Loki.Alloy.1.10.2" >}}
43+
[Grafana Alloy Install]: {{< url path="GitHub.Cortex.Observability.4.0.0.GrafanaAlloyInstallZip" >}}
44+
[Migrate to Alloy]: {{< url path="Cortex.Guides.UpgradeGuides.UpgradeObservability.3.0.0to4.0.0.Cloud.Grafana.MigrateToAlloy" >}}

content/en/docs/2025.9/Guides/upgrade-guides/upgrade-observability/3.0.0-to-4.0.0/cloud/grafana/upgrade-promtail.md

Lines changed: 0 additions & 75 deletions
This file was deleted.

content/en/docs/2025.9/Guides/upgrade-guides/upgrade-observability/3.0.0-to-4.0.0/on-premise/grafana/migrate-to-alloy.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,20 @@ These steps will need to be performed on all application servers that host a Pro
3636
1. Click *Yes* when prompted for confirmation that you wish to remove the service.
3737
1. Click *OK* when the successful removal of the Promtail service is confirmed.
3838
1. Open a File Explorer and navigate to the folder where Promtail was running from, e.g. `C:\ProgramData\Cortex\Observability\Promtail`
39-
1. Delete the Promtail directory
4039
1. In File Explorer, navigate to the extracted alloy-installer-windows-amd64.exe folder created as part of [Make Artefacts Available][].
4140
1. Copy the alloy-installer-windows-amd64.exe into a suitable location, e.g. `C:\ProgramData\Cortex\Observability\Grafana Alloy`.
4241
1. In File Explorer, navigate to the extracted Grafana.Alloy.Install folder created as part of [Make Artefacts Available][].
4342
1. Copy the contents of the folder to the same location as the previously copied alloy-installer-windows-amd64.exe.
4443
1. In Powershell change the location to the folder that the artefacts have been copied to, e.g. `cd C:\ProgramData\Cortex\Observability\Grafana Alloy`.
45-
1. Execute the `.\Migrate-Promtail-To-Alloy.ps1` command to install the downloaded `alloy-installer-windows-amd64.exe` as a service.
44+
1. Install Grafana Alloy by executing the following command and passing in the correct path for the `promtail-local-config.yaml`:
45+
46+
``` powershell
47+
.\Migrate-Promtail-To-Alloy.ps1 -PromtailConfig "C:\ProgramData\Cortex\Observability\Promtail\promtail-local-config.yaml"
48+
```
49+
4650
1. When prompted, enter the credentials that the Grafana Alloy Service should run as.
4751
1. When prompted, enter the bearer token that was specified when [configuring authentication for the Reverse Proxy][Reverse Proxy Authentication]
52+
1. Once the migration has completed, delete the now obsolete Promtail directory e.g. `C:\ProgramData\Cortex\Observability\Promtail`.
4853
4954
## Next Steps?
5055

content/en/docs/2025.9/Guides/upgrade-guides/upgrade-observability/3.0.0-to-4.0.0/on-premise/grafana/upgrade-loki.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ This guide describes how to upgrade the Loki installation. Please ensure that th
8282
* In the *Edit Condition* dialog:
8383
* *Condition Input* should be set to `{HTTP_AUTHORIZATION}`.
8484
* *Check if input string:* should be set to `Does Not Match the Pattern`.
85-
* *Pattern* should be set to `^Bearer <Bearer Token>$` replacing &lt;Bearer Token&gt; with an appropriate value.
85+
* *Pattern* should be set to `^Bearer <Bearer Token>$` replacing &lt;Bearer Token&gt; with an appropriate value.
8686
8787
A valid Bearer Token can be generated by any token generator, e.g. [Token Generator][], and should be a minimum of 64 characters consisting of uppercase and lowercase letters as well as numbers but should not contain any symbols. This token value should be saved for use when [Migrating Promtail to Grafana Alloy][Migrate to Alloy].
8888
* *Ignore case* should be unchecked.

data/urls.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,7 @@
10921092
[Cortex.Guides.UpgradeGuides.UpgradeObservability.3.0.0to4.0.0.Cloud.Grafana]
10931093
BackupOldFiles = "/docs/guides/upgrade-guides/upgrade-observability/3.0.0-to-4.0.0/cloud/grafana/prerequisites/#backup-old-files"
10941094
MakeArtefactsAvailable = "/docs/guides/upgrade-guides/upgrade-observability/3.0.0-to-4.0.0/cloud/grafana/prerequisites/#make-artefacts-available"
1095+
MigrateToAlloy = "/docs/guides/upgrade-guides/upgrade-observability/3.0.0-to-4.0.0/cloud/grafana/migrate-to-alloy"
10951096
Prerequisites = "/docs/guides/upgrade-guides/upgrade-observability/3.0.0-to-4.0.0/cloud/grafana/prerequisites"
10961097
TryItOut = "/docs/guides/upgrade-guides/upgrade-observability/3.0.0-to-4.0.0/cloud/grafana/try-it-out"
10971098
UpgradePromtail = "/docs/guides/upgrade-guides/upgrade-observability/3.0.0-to-4.0.0/cloud/grafana/upgrade-promtail"

0 commit comments

Comments
 (0)