OpenTelemetry Collectors act as the service pipeline by gathering telemetry data from your applications and exporting it to a backend. You can either use a Cisco AppDynamics Distribution of OpenTelemetry Collector or configure your existing OpenSource OpenTelemetry Collector to sends logs to the Cisco Cloud Observability backend.
If you don't have any existing OpenTelemetry collector, Cisco AppDynamics Distribution of OpenTelemetry Collector is the preferable collector. To configure, see Cisco AppDynamics Distribution of OpenTelemetry Collector Settings.
If you are using an existing OpenSource OpenTelemetry Collector to send logs data, modify these sections of your existing OpenTelemetry Collector configuration file:
- Extensions: Configure the
oauth2client
extension to authenticate to the Cisco Cloud Observability backend. - Exporters: Configure the
logs_endpoint
to send logs data to the Cisco Cloud Observability backend. - Service: Configure the service pipeline to include the required receivers, processors, extensions, and exporters.
You do not need to modify the receivers
section of the OpenTelemetry Collection configuration file to add support for Cisco Cloud Observability.
- You are using the Contrib version (>=0.36.0) OpenTelemetry Collector, which supports the
oauth2client
extension. The GA version of OpenTelemetry Collector does not support the oauth2client
extension at this time. - If you require a customized version of the OpenTelemetry Collector, ensure that these components are included:
You can follow the steps described here to generate OAuth 2.0 credentials and then configure in the extensions/oauth2client
section of your OpenTelemetry Collector configuration file.
extensions:
oauth2client:
client_id: <clientId from UI>
client_secret: <clientSecret from UI>
token_url: <tokenUrl from UI>
CODE
To configure the OpenTelemetry Collector to send logs to the Cisco Cloud Observability backend, configure an otlphttp
(HTTP) exporter set the logs_endpoint
and enable the OAuth2 authenticator.
In the following sample, <tenantHostName>
is the host name from the tokenUrl
value generated in the Cisco Cloud Observability UI.
For example, if the tokenUrl
is https://mytenant.observe.appdynamics.com/auth/dfdbdf71-7322-44d0-0123456789012/default/oauth2/token
, set the logs_endpoint
to https://mytenant.observe.appdynamics.com/data/v1/logs
:
exporters:
otlphttp: #### Mandatory for Cisco Cloud Observability
auth:
authenticator: oauth2client
logs_endpoint: https://<tenantHostName>/data/v1/logs
CODE
To configure the service
section:
- Add oauth2client to
service/extensions
- Add each exporter (
otlphttp
, and optionally logging
) to service/pipelines
service:
extensions: #### Mandatory for Cisco Cloud Observability
- oauth2client
pipelines:
logs:
receivers: [otlp]
exporters: [otlphttp]
CODE