Skip to content

Commit 23b3674

Browse files
authored
Replace Promtail with Grafana Alloy (#227)
1 parent e38a347 commit 23b3674

File tree

25 files changed

+269
-260
lines changed

25 files changed

+269
-260
lines changed

.htmltest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ IgnoreDirs:
4545
- "docs/2024.5/?.*/"
4646
- "docs/2024.7/?.*/"
4747
- "docs/2024.11/?.*/"
48+
- "docs/2025.1/?.*/"
49+
- "docs/2025.5/?.*/"

content/en/docs/2025.7/getting-started/cloud/add-observability-to-innovation/Grafana/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ weight: 10
1212
| Component | Purpose | Required/Optional |Server Role |
1313
|-----------|---------|----------|------------|
1414
| [Grafana][] | Web application that provides querying and visualisation of data in the form of dashboards. | Required | Grafana Cloud managed service |
15+
| [Grafana Alloy][] | An observability collector that can ingest logs and send them to a Grafana Loki instance. It should be deployed to every machine that has a Microsoft Service Fabric node used by {{% ctx %}}. | Required | Application Server |
1516
| [Grafana Loki][Grafana Loki] | Log aggregation system designed to store and query logs from applications and infrastructure. | Required | Grafana Cloud managed service |
16-
| [Promtail][] | An agent which ships the contents of local logs to a Grafana Loki instance. It should be deployed to every machine that has a Microsoft Service Fabric node used by {{% ctx %}}. | Required | Application Server |
1717

1818
## Recommended Architecture
1919

@@ -27,6 +27,6 @@ The following architecture requires 1..n Application servers and 1 [Grafana Clou
2727

2828
[Prerequisites]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.Prerequisites.MainDoc" >}}
2929
[Grafana]: {{< url path="Grafana.Products.Grafana.MainDoc" >}}
30+
[Grafana Alloy]: {{< url path="Grafana.Products.Loki.Alloy.MainDoc" >}}
3031
[Grafana Cloud]: {{< url path="Grafana.MainDoc" >}}
3132
[Grafana Loki]: {{< url path="Grafana.Products.Loki.MainDoc" >}}
32-
[Promtail]: {{< url path="Grafana.Products.Loki.Promtail.MainDoc" >}}

content/en/docs/2025.7/getting-started/cloud/add-observability-to-innovation/Grafana/import-dashboards.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ To do this, follow these steps for all default {{% ctx %}} dashboards imported:
5757
1. Select your [configured Loki data source][] in the *Adhoc Options* > *Data source* drop-down menu, e.g. *grafanacloud-cortex-logs*.
5858
1. Click *Apply*.
5959
1. Click the dashboard name in the breadcrumb at the top left corner of the page to go back to the dashboard.
60-
1. Click the + icon next to the Custom Filter to confirm that a list of available filter options is visible. If Grafana Loki has not received any logs from Promtail there will be no options available for selection.
60+
1. Click the + icon next to the Custom Filter to confirm that a list of available filter options is visible. If Grafana Loki has not received any logs from Grafana Alloy there will be no options available for selection.
6161
1. Repeat steps 2 - 9 for all additional default dashboards.
6262

6363
## Next Steps?
@@ -66,6 +66,6 @@ To do this, follow these steps for all default {{% ctx %}} dashboards imported:
6666

6767
[configured Loki data source]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.SetupLoki.MainDoc" >}}
6868
[Grafana]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.SetupGrafana.MainDoc" >}}
69-
[Grafana.Dashboards.zip]: {{< url path="GitHub.Cortex.Observability.3.0.0.GrafanaDashboardsZip" >}}
69+
[Grafana.Dashboards.zip]: {{< url path="GitHub.Cortex.Observability.4.0.0.GrafanaDashboardsZip" >}}
7070
[Loki]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.SetupLoki.MainDoc" >}}
7171
[Try it Out]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.TryItOut.MainDoc" >}}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "Install Grafana Alloy"
3+
linkTitle: "Install Grafana Alloy"
4+
description: "Information about installing and configuring Grafana Alloy on the Application Server(s)."
5+
weight: 50
6+
---
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: "Configure Grafana Alloy"
3+
linkTitle: "Configure Grafana Alloy"
4+
description: "Information about configuring Grafana Alloy on the Application Server(s)."
5+
weight: 20
6+
---
7+
8+
# {{% param title %}}
9+
10+
This guide describes how to configure Grafana Alloy on the Application Server(s).
11+
12+
{{% alert type="note" title="Note" %}}These steps must be performed for every Grafana Alloy installation in the cluster.{{% /alert %}}
13+
14+
## Configure Grafana Alloy
15+
16+
1. Open the `config.alloy` configuration file, which is located in the folder alongside the `alloy-installer-windows-amd64.exe` file.
17+
1. Set the `__path__` in the `local.file_match "ApiGateway"` > `path_targets` section to the path of the `Logs` folder specified in the `appSettings.json` file during installation of the API Gateway Service, e.g. `"C:/ProgramData/Cortex/API Gateway Service/Logs/**/ServiceFabricHttpEventLog-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]{_[0-9][0-9][0-9],}.json"`.
18+
1. Set the Grafana Loki `url` in the `loki.write "default"` > `endpoint` section, which can be found at the end of the file, with the url value noted down during the [Setup Grafana Loki][] steps.
19+
20+
A correct URL should be similar to `https://239948:eyJrIjoiaWVjNzE4MmVjOThkNTgxMMQ5MzIyZjdlMjAyYWY4NWJjO1I1OTc4NSIsIm4iOiJUZXN0S2V5IiwiaWQiOjY4Nzk0MX0=@logs-prod-008.grafana.net/api/prom/push`.
21+
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.
22+
1. Save the file.
23+
24+
### Re-Start the Grafana Alloy Service
25+
26+
1. Open `services.msc`.
27+
1. Locate the `Alloy` service.
28+
1. Right click on the service name and select `Restart`. If the service is not already running, select `Start`.
29+
30+
## Next Steps?
31+
32+
1. [Import Dashboards][]
33+
34+
[Import Dashboards]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.ImportDashboards.MainDoc" >}}
35+
[Setup Grafana Loki]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.SetupLoki.SetUpGrafanaLoki" >}}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "Install Grafana Alloy"
3+
linkTitle: "Install Grafana Alloy"
4+
description: "Information about installing Grafana Alloy on the Application Server(s)."
5+
weight: 10
6+
---
7+
8+
# {{% param title %}}
9+
10+
This guide describes how to install Grafana Alloy on the Application Server(s). Please ensure that the [Prerequisites][] have been completed before starting this installation.
11+
12+
## Install Grafana Alloy
13+
14+
1. Download the [Grafana Alloy 1.10.0][] archive.
15+
1. Extract content of the downloaded archive to a suitable location, e.g. `C:\Program Data\Cortex\Observability\Grafana Alloy`.
16+
1. Download the [Grafana Alloy.zip][] archive and extract its contents alongside the previously extracted Grafana Alloy `alloy-installer-windows-amd64.exe`.
17+
This archive contains the `config.alloy` configuration file and PowerShell scripts to install Grafana Alloy as a Windows service.
18+
1. Run Windows PowerShell as Administrator
19+
1. Change the location to where all the files were extracted to in step 2, e.g. `cd "C:\Program Data\Cortex\Observability\Grafana Alloy"`.
20+
1. Execute the `.\Install-Alloy.ps1` command to install the downloaded `alloy-installer-windows-amd64.exe` as a service.
21+
1. When prompted, enter the credentials that the Grafana Alloy Service should run as.
22+
1. When prompted to enter the bearer token, leave it blank and press Enter.
23+
24+
## Next Steps?
25+
26+
1. [Configure Grafana Alloy][]
27+
28+
[Configure Grafana Alloy]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.InstallAlloy.ConfigureAlloy.MainDoc" >}}
29+
[Grafana Alloy 1.10.0]: {{< url path="Grafana.Products.Loki.Alloy.1.10.0" >}}
30+
[Grafana Alloy.zip]: {{< url path="GitHub.Cortex.Observability.4.0.0.GrafanaAlloyInstallZip" >}}
31+
[Prerequisites]: {{< url path="Cortex.GettingStarted.OnPremise.AddObservabilityToInnovation.Grafana.Prerequisites" >}}

content/en/docs/2025.7/getting-started/cloud/add-observability-to-innovation/Grafana/install-promtail/_index.md

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

content/en/docs/2025.7/getting-started/cloud/add-observability-to-innovation/Grafana/install-promtail/configure-promtail.md

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

content/en/docs/2025.7/getting-started/cloud/add-observability-to-innovation/Grafana/install-promtail/install-promtail.md

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

content/en/docs/2025.7/getting-started/cloud/add-observability-to-innovation/Grafana/prerequisites.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The prerequisites required for each server role (as described in [Architecture][
1010

1111
## Hardware Requirements
1212

13-
The application servers (as described in {{< ahref path="Cortex.GettingStarted.OnPremise.InstallInnovationOnly.MultipleServerWithHA.Architecture" title="Architecture" >}}) to which Promtail will be added have already been installed as part of the {{% ctx %}} install process and do not require any hardware modifications for the observability platform installation.
13+
The application servers (as described in {{< ahref path="Cortex.GettingStarted.OnPremise.InstallInnovationOnly.MultipleServerWithHA.Architecture" title="Architecture" >}}) to which Grafana Alloy will be added have already been installed as part of the {{% ctx %}} install process and do not require any hardware modifications for the observability platform installation.
1414

1515
{{% alert title="Note" %}}
1616
The application servers must have internet access in order to communicate with the Grafana Cloud managed service.
@@ -21,7 +21,7 @@ The application servers must have internet access in order to communicate with t
2121

2222
| Server Role | Windows Server[^1] | Other Software |
2323
|--------------------|------------------------------------------------|--------------------|
24-
| Application Server | [2022 (x64)][] *Recommended*<br>[2019 (x64)][] | [Promtail 3.0.0][] |
24+
| Application Server | [2022 (x64)][] *Recommended*<br>[2019 (x64)][] | [Grafana Alloy 1.10.0][] |
2525

2626
[^1]: Windows Server Standard and Datacenter editions are supported. Filesystem **must be NTFS** and networking **must use IPv4**. Linux is not supported, but may be in the future.
2727

@@ -48,12 +48,16 @@ These requirements apply to each of the Application Servers.
4848

4949
A domain user which is a member of the Local Administrators group on all Application Servers must be available to perform the installation.
5050

51+
#### Service User
52+
53+
Grafana Alloy requires a domain user that is not a member of the Local Administrators group on any of the Application Servers. This user must be given the `Log on as a service` right otherwise the service will not be able to run. This permission will be granted as part of the install if it is not already granted.
54+
5155
## Next Steps?
5256

5357
1. [Set up Grafana][]
5458

5559
[2019 (x64)]: {{< url path="Microsoft.Downloads.Windows.Server2019" >}}
5660
[2022 (x64)]: {{< url path="Microsoft.Downloads.Windows.Server2022" >}}
5761
[Architecture]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.Architecture.MainDoc" >}}
58-
[Promtail 3.0.0]: {{< url path="Grafana.SelfManaged.Downloads.Promtail.3.0.0.PromtailInstallZip" >}}
62+
[Grafana Alloy 1.10.0]: {{< url path="Grafana.Products.Loki.Alloy.1.10.0" >}}
5963
[Set up Grafana]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.SetupGrafana.MainDoc" >}}

0 commit comments

Comments
 (0)