-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mdbirnstiehl/otel-acronym-update
Use EDOT acronym
- Loading branch information
Showing
9 changed files
with
49 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains 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 |
---|---|---|
@@ -1,37 +1,40 @@ | ||
# Manually configure the Elastic Distribution for OpenTelemetry Collector | ||
Collecting logs and host metrics with the Elastic Distribution for OpenTelemetry Collector without using the [guided onboarding](guided-onboarding.md) requires some manual configuration. | ||
# Manually configure the Elastic Distribution of OpenTelemetry Collector | ||
Collecting logs and host metrics with the Elastic Distribution of OpenTelemetry (EDOT) Collector without using the [guided onboarding](guided-onboarding.md) requires completing some manual steps. | ||
|
||
## Before you begin | ||
The Elastic OTel collector has the following requirements and limitations: | ||
The EDOT Collector has the following requirements: | ||
|
||
- The **Admin** role or higher is required to onboard system logs and metrics. To learn more, refer to [Assign user roles and privileges](https://www.elastic.co/docs/current/serverless/general/assign-user-roles). | ||
- Root privileges on the host are required to run the OpenTelemetry collector used in this quickstart. | ||
- The Elastic OTel Collector only works on Kubernetes, Linux, and MacOS systems. | ||
- Refer to [Elastic OpenTelemetry Collector limitations](collector-limitations.md) for known limitations when using the Elastic Distribution for the OpenTelemetry collector. | ||
- The EDOT Collector only works on Kubernetes, Linux, and MacOS systems. | ||
|
||
## Collect your logs and metrics | ||
|
||
To manually configure the Elastic OTel Collector, gather the following information: | ||
To manually configure the EDOT Collector, gather the following information: | ||
|
||
- **Your Elasticsearch endpoint**: From the help menu in Kibana or your serverless Observability project, select **Connection details** and copy the **Elasticsearch endpoint**. | ||
- **Your Elasticsearch endpoint**: From the help menu in Elastic Cloud or your serverless Observability project, select **Connection details** and copy the **Elasticsearch endpoint**. | ||
- **API key**: | ||
- **Kibana:** From the help menu, select **Connection details** and select **Create and manage API keys**. From the **API keys** page, select **Create API key**. Give your API key a name, select **Create API key**, and copy the new API key. | ||
- **Elasticsearch Service:** From the help menu, select **Connection details** and select **Create and manage API keys**. From the **API keys** page, select **Create API key**. Give your API key a name, select **Create API key**, and copy the new API key. | ||
- **Serverless:** From the help menu, select **Connection details** and select the **API key** tab. Give your API key a name, select **Create API key**, and copy the new API key. | ||
|
||
Then manually configure the Elastic OTel Collector to collect logs and metrics on a MacOS or Linux system: | ||
Then manually configure the EDOT Collector to collect logs and metrics on a MacOS or Linux system: | ||
|
||
1. Download and extract the standalone Elastic Agent for your platform. For more on downloading and extracting a standalone Elastic Agent, refer to the first step in [Install standalone Elastic Agents](https://www.elastic.co/guide/en/fleet/current/install-standalone-elastic-agent.html). | ||
1. From the Elastic Agent base directory, go to the `otel_samples` directory. The `platformlogs_hostmetrics.yml` file has the configurations for the receivers, processors, and exporters needed to collect logs and host metrics. | ||
1. Copy the content of the `platformlogs_hostmetrics.yml` file. | ||
1. From the Elastic Agent base directory, open the `otel.yml` file, and replace the content with the copied content from `platformlogs_hostmetrics.yml`. | ||
1. Find and update the following settings in the configuration: | ||
- `file_storage.directory`: Set to the directory where you want to store you OpenTelemetry data. <!-- do we want to recommend a specific folder for this? --> | ||
- `file_storage.directory`: Set to the directory where you want to store you OpenTelemetry data. | ||
- `elasticsearch.endpoint`: Set to your Elasticsearch endpoint you copied earlier. | ||
- `elasticsearch.api_key`: Set to the API key you created earlier. | ||
1. Run the OpenTelemetry collector with the following command: | ||
1. Run the EDOT collector with the following command: | ||
```console | ||
./elastic-agent otel --config otel.yml | ||
``` | ||
|
||
Logs are collected from setup onward, so you won't see logs that occurred before starting the collector. | ||
The default log path is `/var/log/*`. Update the path in the `otel.yml` file. | ||
The default log path is `/var/log/*`. Update the path in the `otel.yml` file. | ||
|
||
## Limitations | ||
|
||
Refer to [Elastic OpenTelemetry Collector limitations](collector-limitations.md) for known limitations when using the Elastic Distribution of the OpenTelemetry collector. |