-
Notifications
You must be signed in to change notification settings - Fork 528
docs: Iterate on the OTel Engine Documentation #5404
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
blewis12
merged 16 commits into
main
from
blewis12/improve-otel-engine-documentation-iteration-1
Feb 6, 2026
+354
−89
Merged
Changes from 3 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ca1f473
Add a "main" page, with links to a "Getting Started" guide as well as…
blewis12 74c5598
add small note about flags
blewis12 8eb4796
Refactor first draft docs
clayton-cornell a82ace5
Apply suggestions from code review
clayton-cornell 30a2f46
Update docs/sources/open-telemetry/_index.md
clayton-cornell df27a23
Apply suggestions from code review
clayton-cornell eeba4f3
Apply suggestions from code review
clayton-cornell d44bd91
add some more points to the getting started guide
blewis12 80c9efc
Rename directory, edit text, include suggestions
clayton-cornell 4995cbd
link to otlp
blewis12 0a23fd3
remove experimental flag in getting started example for alloy engine
blewis12 a3c78bd
remove duplicate link to upstream configuration
blewis12 1910062
Mention plans for FM and link to blog post
blewis12 f1fee0d
remove mention/promise of future fleet management
blewis12 b3b5c08
Merge branch 'main' into blewis12/improve-otel-engine-documentation-i…
blewis12 8a44daa
modify getting started example to be non GC specific
blewis12 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
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,146 @@ | ||
| --- | ||
| canonical: https://grafana.com/docs/alloy/latest/opentelemetry/ | ||
| description: Grafana Alloy is a flexible, high performance, vendor-neutral distribution of the OTel Collector | ||
| menuTitle: Open Telemetry | ||
| title: Open Telemetry With Grafana Alloy | ||
clayton-cornell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| _build: | ||
| list: false | ||
| noindex: true | ||
| weight: 10 | ||
| --- | ||
|
|
||
| ## Overview | ||
|
|
||
| {{< param "FULL_PRODUCT_NAME" >}} combines the Prometheus-native, production-grade collection features of {{< param "PRODUCT_NAME" >}} with the broad ecosystem and standards of OpenTelemetry. | ||
clayton-cornell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| The {{< param "FULL_OTEL_ENGINE" >}} is a bundled OpenTelemetry Collector distribution embedded within {{< param "PRODUCT_NAME" >}} that lets you run {{< param "PRODUCT_NAME" >}} as a fully compatible OTel Collector while retaining access to existing features and integrations. | ||
|
|
||
| {{< docs/shared lookup="stability/experimental_otel.md" source="alloy" version="<ALLOY_VERSION>" >}} | ||
|
|
||
| ## Terminology | ||
|
|
||
| {{< param "PRODUCT_NAME" >}} supports two runtime engines and an extension: | ||
|
|
||
| - **{{< param "DEFAULT_ENGINE" >}}**: The existing {{< param "PRODUCT_NAME" >}} runtime and configuration syntax. | ||
blewis12 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| This remains the non-breaking, primary experience for existing {{< param "PRODUCT_NAME" >}} users. | ||
blewis12 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - **{{< param "OTEL_ENGINE" >}}**: The new runtime that runs our OpenTelemetry distribution inside {{< param "PRODUCT_NAME" >}}, using standard [upstream collector YAML configuration](https://opentelemetry.io/docs/collector/configuration/) for pipelines and components. | ||
blewis12 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - **{{< param "PRODUCT_NAME" >}} Engine extension**: An OpenTelemetry Collector extension that allows you to run both the {{< param "DEFAULT_ENGINE" >}} and the {{< param "OTEL_ENGINE" >}} in parallel. | ||
|
|
||
| ## Included components | ||
|
|
||
| The {{< param "OTEL_ENGINE" >}} bundle includes: | ||
|
|
||
| - Standard components from the OpenTelemetry Collector core and contributor repositories | ||
blewis12 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - The `alloyengine` extension | ||
|
|
||
| The following sections list all included components: | ||
|
|
||
| {{< collapse title="Extensions" >}} | ||
|
|
||
| - [alloyengine](https://github.com/grafana/alloy/tree/main/extension/alloyengine) | ||
| - [basicauth](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/basicauthextension) | ||
| - [bearertokenauth](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/bearertokenauthextension) | ||
| - [headerssetter](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/headerssetterextension) | ||
| - [healthcheck](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/healthcheckextension) | ||
| - [jaegerremotesampling](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/jaegerremotesampling) | ||
| - [oauth2clientauth](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/oauth2clientauthextension) | ||
| - [pprof](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/pprofextension) | ||
| - [sigv4auth](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/sigv4authextension) | ||
| - [filestorage](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/storage/filestorage) | ||
| - [zpages](https://github.com/open-telemetry/opentelemetry-collector/tree/main/extension/zpagesextension) | ||
|
|
||
| {{< /collapse >}} | ||
|
|
||
| {{< collapse title="Configuration Providers" >}} | ||
|
|
||
| - [env](https://github.com/open-telemetry/opentelemetry-collector/tree/main/confmap/provider/envprovider) | ||
| - [file](https://github.com/open-telemetry/opentelemetry-collector/tree/main/confmap/provider/fileprovider) | ||
| - [http](https://github.com/open-telemetry/opentelemetry-collector/tree/main/confmap/provider/httpprovider) | ||
| - [https](https://github.com/open-telemetry/opentelemetry-collector/tree/main/confmap/provider/httpsprovider) | ||
| - [yaml](https://github.com/open-telemetry/opentelemetry-collector/tree/main/confmap/provider/yamlprovider) | ||
|
|
||
| {{< /collapse >}} | ||
|
|
||
| {{< collapse title="Receivers" >}} | ||
|
|
||
| - [awscloudwatch](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/awscloudwatchreceiver) | ||
| - [awsecscontainermetrics](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/awsecscontainermetricsreceiver) | ||
| - [awss3](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/awss3receiver) | ||
| - [cloudflare](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/cloudflarereceiver) | ||
| - [datadog](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/datadogreceiver) | ||
| - [faro](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/faroreceiver) | ||
| - [filelog](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver) | ||
| - [filestats](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filestatsreceiver) | ||
| - [fluentforward](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/fluentforwardreceiver) | ||
| - [googlecloudpubsub](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/googlecloudpubsubreceiver) | ||
| - [hostmetrics](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/hostmetricsreceiver) | ||
| - [influxdb](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/influxdbreceiver) | ||
| - [jaeger](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/jaegerreceiver) | ||
| - [kafka](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/kafkareceiver) | ||
| - [solace](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/solacereceiver) | ||
| - [splunkhec](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/splunkhecreceiver) | ||
| - [syslog](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/syslogreceiver) | ||
| - [tcplog](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/tcplogreceiver) | ||
| - [vcenter](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/vcenterreceiver) | ||
| - [zipkin](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/zipkinreceiver) | ||
| - [otlp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver) | ||
| {{< /collapse >}} | ||
|
|
||
| {{< collapse title="Connectors" >}} | ||
| - [count](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/connector/countconnector) | ||
| - [grafanacloud](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/connector/grafanacloudconnector) | ||
| - [servicegraph](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/connector/servicegraphconnector) | ||
| - [spanmetrics](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/connector/spanmetricsconnector) | ||
| - [forward](https://github.com/open-telemetry/opentelemetry-collector/tree/main/connector/forwardconnector) | ||
|
|
||
| {{< /collapse >}} | ||
|
|
||
| {{< collapse title="Processors" >}} | ||
|
|
||
| - [attributes](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/attributesprocessor) | ||
| - [cumulativetodelta](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/cumulativetodeltaprocessor) | ||
| - [deltatocumulative](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/deltatocumulativeprocessor) | ||
| - [filter](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/filterprocessor) | ||
| - [groupbyattrs](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/groupbyattrsprocessor) | ||
| - [interval](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/intervalprocessor) | ||
| - [k8sattributes](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/k8sattributesprocessor) | ||
| - [metricstarttime](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstarttimeprocessor) | ||
| - [probabilisticsampler](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/probabilisticsamplerprocessor) | ||
| - [resource](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourceprocessor) | ||
| - [resourcedetection](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourcedetectionprocessor) | ||
| - [span](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/spanprocessor) | ||
| - [tailsampling](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/tailsamplingprocessor) | ||
| - [transform](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/transformprocessor) | ||
| - [batch](https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/batchprocessor) | ||
| - [memorylimiter](https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/memorylimiterprocessor) | ||
|
|
||
| {{< /collapse >}} | ||
|
|
||
| {{< collapse title="Exporters" >}} | ||
|
|
||
| - [awss3](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/awss3exporter) | ||
| - [faro](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/faroexporter) | ||
| - [file](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/fileexporter) | ||
| - [googlecloud](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/googlecloudexporter) | ||
| - [googlecloudpubsub](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/googlecloudpubsubexporter) | ||
| - [kafka](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/kafkaexporter) | ||
| - [loadbalancing](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/loadbalancingexporter) | ||
| - [prometheus](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/prometheusexporter) | ||
| - [prometheusremotewrite](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/prometheusremotewriteexporter) | ||
| - [splunkhec](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/splunkhecexporter) | ||
| - [syslog](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/syslogexporter) | ||
| - [zipkin](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/zipkinexporter) | ||
| - [debug](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/debugexporter) | ||
| - [nop](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/nopexporter) | ||
| - [otlp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/otlpexporter) | ||
| - [otlphttp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/otlphttpexporter) | ||
|
|
||
| {{< /collapse >}} | ||
|
|
||
| To view the full list of components and their versioning, refer to the [OCB manifest](https://github.com/grafana/alloy/blob/main/collector/builder-config.yaml) | ||
|
|
||
| ## Next steps | ||
|
|
||
| - [Get started](get-started.md) with the {{< param "OTEL_ENGINE" >}} | ||
clayton-cornell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - [OTel CLI](../reference/cli/otel.md) reference documentation | ||
clayton-cornell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
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,134 @@ | ||
| --- | ||
| canonical: https://grafana.com/docs/alloy/latest/opentelemetry/get-started | ||
| description: Getting Started with the Alloy OpenTelemetry Engine | ||
clayton-cornell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| menuTitle: Get Started | ||
| title: Get Started with the Alloy OpenTelemetry Engine | ||
| _build: | ||
| list: false | ||
| noindex: true | ||
| weight: 10 | ||
| --- | ||
|
|
||
| # Get Started with the {{% param "FULL_OTEL_ENGINE" %}} | ||
|
|
||
| You can run the {{< param "OTEL_ENGINE" >}} using the CLI, Helm chart, or service installation. | ||
|
|
||
| ## Run with the CLI | ||
|
|
||
| The {{< param "OTEL_ENGINE" >}} is available under the {{< param "PRODUCT_NAME" >}} `otel` command. | ||
| The CLI is the easiest way to experiment locally or on a single host. | ||
| Refer to the [OTel CLI](../reference/cli/otel.md) documentation for more information. | ||
clayton-cornell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| The following example configuration file accepts OTLP and sends it to the Grafana Cloud OTLP gateway. | ||
blewis12 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| You can adapt the endpoint and credentials for your region and tenant. | ||
| For more information about where to find your `INSTANCE_ID`, `API_TOKEN`, and `GRAFANA_URL`, refer to [Send data using OpenTelemetry Protocol](https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/). | ||
blewis12 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```yaml | ||
| extensions: | ||
| basicauth/grafana_cloud: | ||
| client_auth: | ||
| username: INSTANCE_ID | ||
| password: API_TOKEN | ||
|
|
||
| receivers: | ||
| otlp: | ||
| protocols: | ||
| grpc: {} | ||
| http: {} | ||
|
|
||
| processors: | ||
| batch: | ||
| timeout: 1s | ||
| send_batch_size: 512 | ||
|
|
||
| exporters: | ||
| otlphttp/grafana_cloud: | ||
| endpoint: GRAFANA_URL | ||
| auth: | ||
| authenticator: basicauth/grafana_cloud | ||
|
|
||
| service: | ||
| extensions: [basicauth/grafana_cloud] | ||
| pipelines: | ||
| traces: | ||
| receivers: [otlp] | ||
| processors: [batch] | ||
| exporters: [otlphttp/grafana_cloud] | ||
| ``` | ||
|
|
||
| To start the {{< param "OTEL_ENGINE" >}}, run the following command: | ||
|
|
||
| ```shell | ||
| alloy otel --config=<CONFIG_FILE> [<FLAGS> ...] | ||
clayton-cornell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| {{< param "PRODUCT_NAME" >}} then accepts incoming OTLP data on `0.0.0.0:4317` for gRPC and `0.0.0.0:4318` for HTTP requests. | ||
| Metrics are also available on the default collector port and endpoint at `0.0.0.0:8888/metrics`. | ||
| Since the {{< param "DEFAULT_ENGINE" >}} isn't running, the UI and metrics aren't available at `0.0.0.0:12345/metrics`. | ||
|
|
||
| ### Run the {{% param "PRODUCT_NAME" %}} Engine extension | ||
|
|
||
| You can also run the {{< param "OTEL_ENGINE" >}} with the {{< param "DEFAULT_ENGINE" >}}. | ||
| Modify your YAML configuration to include the `alloyengine` extension, which accepts a path to the {{< param "DEFAULT_ENGINE" >}} configuration and starts a {{< param "DEFAULT_ENGINE" >}} pipeline alongside the {{< param "OTEL_ENGINE" >}} pipeline. | ||
|
|
||
| The following example shows the configuration: | ||
|
|
||
| ```yaml | ||
| extensions: | ||
| basicauth/grafana_cloud: | ||
| client_auth: | ||
| username: INSTANCE_ID | ||
| password: API_TOKEN | ||
| alloyengine: | ||
| config: | ||
| file: path/to/alloy-config.alloy | ||
| flags: | ||
| server.http.listen-addr: 0.0.0.0:12345 | ||
| stability.level: experimental | ||
|
|
||
| receivers: | ||
| otlp: | ||
| protocols: | ||
| grpc: {} | ||
| http: {} | ||
|
|
||
| processors: | ||
| batch: | ||
| timeout: 1s | ||
| send_batch_size: 512 | ||
|
|
||
| exporters: | ||
| otlphttp/grafana_cloud: | ||
| endpoint: GRAFANA_URL | ||
| auth: | ||
| authenticator: basicauth/grafana_cloud | ||
|
|
||
| service: | ||
| extensions: [basicauth/grafana_cloud, alloyengine] | ||
| pipelines: | ||
| traces: | ||
| receivers: [otlp] | ||
| processors: [batch] | ||
| exporters: [otlphttp/grafana_cloud] | ||
| ``` | ||
|
|
||
| This example adds the `alloyengine` block in the extension declarations and enables the extension in the `service` block. | ||
| You can then run {{< param "PRODUCT_NAME" >}} with the exact same command as before: | ||
|
|
||
| ```shell | ||
| alloy otel --config=<CONFIG_FILE> [<FLAGS> ...] | ||
clayton-cornell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| This starts both the {{< param "DEFAULT_ENGINE" >}} and {{< param "OTEL_ENGINE" >}}. | ||
| The output of both engines is visible in the logs. | ||
| You can access the {{< param "DEFAULT_ENGINE" >}} UI and metrics on port `12345`. | ||
|
|
||
| ## Run with {{% param "PRODUCT_NAME" %}} Helm chart | ||
|
|
||
| TODO | ||
|
|
||
| ## Run with service installation | ||
|
|
||
| Service installation support for systemd, launchd, and similar systems isn't included in the initial experimental release. | ||
| Service installers will work seamlessly with the {{< param "OTEL_ENGINE" >}} as the feature progresses. | ||
| In the meantime, use the CLI or Helm options for testing. | ||
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.