-
Notifications
You must be signed in to change notification settings - Fork 0
Replace Promtail with Grafana Alloy #227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a1363e9
Modified install guide to replace Promtail with Alloy
9584e18
Modified and updated Cloud Hosted instructions
45aeb5b
Removed unnecessary whitespaces
40468b1
removed old version from HTML Test
b112884
Removed old version from HTML Tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...g-started/cloud/add-observability-to-innovation/Grafana/install-alloy/_index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| title: "Install Grafana Alloy" | ||
| linkTitle: "Install Grafana Alloy" | ||
| description: "Information about installing and configuring Grafana Alloy on the Application Server(s)." | ||
| weight: 50 | ||
| --- |
35 changes: 35 additions & 0 deletions
35
.../cloud/add-observability-to-innovation/Grafana/install-alloy/configure-alloy.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| --- | ||
| title: "Configure Grafana Alloy" | ||
| linkTitle: "Configure Grafana Alloy" | ||
| description: "Information about configuring Grafana Alloy on the Application Server(s)." | ||
| weight: 20 | ||
| --- | ||
|
|
||
| # {{% param title %}} | ||
|
|
||
| This guide describes how to configure Grafana Alloy on the Application Server(s). | ||
|
|
||
| {{% alert type="note" title="Note" %}}These steps must be performed for every Grafana Alloy installation in the cluster.{{% /alert %}} | ||
|
|
||
| ## Configure Grafana Alloy | ||
|
|
||
| 1. Open the `config.alloy` configuration file, which is located in the folder alongside the `alloy-installer-windows-amd64.exe` file. | ||
| 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"`. | ||
| 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. | ||
|
|
||
| A correct URL should be similar to `https://239948:eyJrIjoiaWVjNzE4MmVjOThkNTgxMMQ5MzIyZjdlMjAyYWY4NWJjO1I1OTc4NSIsIm4iOiJUZXN0S2V5IiwiaWQiOjY4Nzk0MX0=@logs-prod-008.grafana.net/api/prom/push`. | ||
| 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. | ||
| 1. Save the file. | ||
|
|
||
| ### Re-Start the Grafana Alloy Service | ||
|
|
||
| 1. Open `services.msc`. | ||
| 1. Locate the `Alloy` service. | ||
| 1. Right click on the service name and select `Restart`. If the service is not already running, select `Start`. | ||
|
|
||
| ## Next Steps? | ||
|
|
||
| 1. [Import Dashboards][] | ||
|
|
||
| [Import Dashboards]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.ImportDashboards.MainDoc" >}} | ||
| [Setup Grafana Loki]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.SetupLoki.SetUpGrafanaLoki" >}} |
31 changes: 31 additions & 0 deletions
31
...ed/cloud/add-observability-to-innovation/Grafana/install-alloy/install-alloy.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| --- | ||
| title: "Install Grafana Alloy" | ||
| linkTitle: "Install Grafana Alloy" | ||
| description: "Information about installing Grafana Alloy on the Application Server(s)." | ||
| weight: 10 | ||
| --- | ||
|
|
||
| # {{% param title %}} | ||
|
|
||
| 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. | ||
|
|
||
| ## Install Grafana Alloy | ||
|
|
||
| 1. Download the [Grafana Alloy 1.10.0][] archive. | ||
| 1. Extract content of the downloaded archive to a suitable location, e.g. `C:\Program Data\Cortex\Observability\Grafana Alloy`. | ||
| 1. Download the [Grafana Alloy.zip][] archive and extract its contents alongside the previously extracted Grafana Alloy `alloy-installer-windows-amd64.exe`. | ||
| This archive contains the `config.alloy` configuration file and PowerShell scripts to install Grafana Alloy as a Windows service. | ||
| 1. Run Windows PowerShell as Administrator | ||
| 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"`. | ||
| 1. Execute the `.\Install-Alloy.ps1` command to install the downloaded `alloy-installer-windows-amd64.exe` as a service. | ||
| 1. When prompted, enter the credentials that the Grafana Alloy Service should run as. | ||
| 1. When prompted to enter the bearer token, leave it blank and press Enter. | ||
|
|
||
| ## Next Steps? | ||
|
|
||
| 1. [Configure Grafana Alloy][] | ||
|
|
||
| [Configure Grafana Alloy]: {{< url path="Cortex.GettingStarted.Cloud.AddObservabilityToInnovation.Grafana.InstallAlloy.ConfigureAlloy.MainDoc" >}} | ||
| [Grafana Alloy 1.10.0]: {{< url path="Grafana.Products.Loki.Alloy.1.10.0" >}} | ||
| [Grafana Alloy.zip]: {{< url path="GitHub.Cortex.Observability.4.0.0.GrafanaAlloyInstallZip" >}} | ||
| [Prerequisites]: {{< url path="Cortex.GettingStarted.OnPremise.AddObservabilityToInnovation.Grafana.Prerequisites" >}} |
6 changes: 0 additions & 6 deletions
6
...tarted/cloud/add-observability-to-innovation/Grafana/install-promtail/_index.md
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
.../add-observability-to-innovation/Grafana/install-promtail/configure-promtail.md
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
...ud/add-observability-to-innovation/Grafana/install-promtail/install-promtail.md
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...rted/on-premise/add-observability-to-innovation/Grafana/install-alloy/_index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| title: "Install Grafana Alloy" | ||
| linkTitle: "Install Grafana Alloy" | ||
| description: "Information about installing and configuring Grafana Alloy on the Application Server(s)." | ||
| weight: 50 | ||
| --- |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.