Skip to Content
Configure vendor and storage connectionsConfigure Datadog connections

Configure Datadog connections with a Grepr integration

The Grepr Datadog integration enables you to ingest telemetry data into Grepr using a Grepr source, process the data with a Grepr pipeline, and then send the processed data to Datadog using a Grepr sink. The Datadog integration supports logs and Application Performance Monitoring (APM) data, including traces and metrics.

You can use the Grepr UI or REST API to create and manage Datadog integrations. This page describes using the UI. To use the REST API, see the Datadog Integration specification.

To send logs or APM data to a Grepr pipeline for processing, change your collector configuration to send them to a Grepr endpoint URL instead of a Datadog endpoint. The collectors supported by the Datadog integration depend on the type of data:

  • Log ingestion is supported from Datadog-compatible collectors, including the Datadog Agent, Fluent Bit, and Fluentd.
  • APM data ingestion is supported from the Datadog Agent with the Datadog Trace Agent enabled. When forwarding processed data to Datadog, the integration supports sending traces or metrics. You can also optionally enable sending APM stats to Datadog. See Datadog APM metrics and stats.
  • Metrics ingestion for a metrics pipeline is supported from the Datadog Agent. See Send Datadog Agent metrics to Grepr.

This page includes example configurations for the supported collectors.

You can also send logs or traces from the OpenTelemetry Collector to an OpenTelemetry integration that forwards them to a Datadog OTLP endpoint. See Configure connections to OpenTelemetry-compatible platforms.

  • Although the Grepr Datadog integration supports all Datadog sites, when you use the Datadog US1 site in the us-east-1 region, the Grepr SaaS offering uses an AWS PrivateLink connection to Datadog.
  • Although this page describes using an integration to create a pipeline for sourcing and sending data with a single observability platform, your pipelines can use multiple integrations to source and sink data for different platforms. For example, you can create a pipeline with a Datadog integration that’s used to source data from Datadog agents, and a Splunk integration and sink that sends the pipeline output to Splunk.

Requirements

Creating and configuring a Datadog integration requires the following:

  • A Datadog API key for your account. You must use the same API key in both your Grepr integration and collector configuration.

  • (Optional) A Datadog application key for your account. The required authorization scopes depend on which features you want to use:

    FeatureRequired scopes
    Selective reduction with automatic exception parsingmonitors_read, dashboards_read, logs_read_config
    Parsed query impact estimation against your indexed Datadog logslogs_read_data
    Datadog as a cloud sourcelogs_read_data

    To learn more about exception parsing, see Enable selective reduction with a Datadog integration. To learn more about Datadog keys and scopes, see API and Application Keys  and Authorization Scopes .

Enable selective reduction with a Datadog integration

When you include a Datadog application key in your integration configuration, Grepr automatically tracks all log monitors configured in your Datadog account. By parsing queries used in these monitors and making them available as exceptions to Grepr’s log reducer, Grepr can determine which messages should not be processed by the reducer.

The application key must have the required authorization scopes. See Requirements.

To learn more about viewing parsed queries and determining which should be used as exceptions, see Identify log events that should bypass aggregation. To learn more about Grepr log reduction, see Reduce noise and improve the usability of your logs with the log reducer.

Use a Datadog integration in a Grepr pipeline

Use the following steps to create a Datadog integration in the Grepr UI and use it in a pipeline to source and sink data.

Step 1: Create a Datadog integration

To create a Datadog integration in the Grepr UI:

  1. Go to the Integrations page in the Grepr UI and click Add new next to Observability Vendors.

    The Integrations page in the Grepr UI.

  2. In the Add Observability Vendor dialog:

    • In the Type menu, select Datadog.
    • In the Name field, enter a name for the integration.
    • In the Site menu, select the parameter matching your Datadog site.
    • In the API Key field, enter your Datadog API key.
    • Optional: In the Application Key field, enter your Datadog Application key. The application key is required only to import exceptions from Datadog, to estimate their impact against your indexed Datadog logs, or to use the integration as a cloud source.
  3. Click Create.

    Add a Datadog integration in the Grepr UI.

    Optional: Grant team access to the integration

    When you have teams in your Grepr organization, you can grant access to the integration to one or more of those teams. To configure team access when you create or edit an integration:

    1. In the Grant Team Access section, click the plus sign icon (+).

    2. Select the team or teams that should be granted access to the integration.

    3. Click Create.

      The Grant Team Access to a resource card in the Grepr UI.

    To learn more, see Manage teams in the Grepr platform and Permissions in the Grepr platform.

Step 2: Add a source to your pipeline

To add a source to your pipeline that uses the Datadog integration, select the integration when creating the pipeline. For an existing pipeline, go to the pipeline details page, click Sources in the left-hand navigation menu, and select the integration.

Step 3: Configure forwarding to Grepr

To send data to Grepr, you configure your collector or agent to send it to the ingestion URL for your Grepr integration, rather than to your observability vendor’s platform. To find the ingestion URL when using the Grepr UI to configure your pipeline, go to the details page for the pipeline, click Sources in the left pane, and copy the Ingest URL.


Accessing the Grepr ingestion URL in the UI.

If you connect to Grepr through AWS PrivateLink, copy the private ingestion URL and use it in place of the public ingestion URL. To learn more about sending data to Grepr over AWS PrivateLink, see Securely forward observability data to Grepr with AWS PrivateLink.

When you use the API, you can construct the ingestion URL using the following format:


https://<integration-id>-<org-id>.ingest.grepr.ai

Replace <integration-id> with the identifier of the vendor integration used by your pipeline and replace <org-id> with the identifier for your organization.

To use the PrivateLink endpoint service, insert .private after the ingest host segment.

Although all sources created from the same integration share the same ingestion URL, you can use a single integration to create sources for multiple pipelines. The Grepr platform ensures events are routed to the correct pipelines.

In the following examples, replace <ingestion-url> with the ingest URL, <ingestion-host> with its hostname, and <dd-api-key> with the Datadog API key you configured in your Grepr integration. Each example marks the settings needed for logs and the settings needed for APM data separately, so you can configure either one or both.

Each tab also shows how to dual ship, which sends your data to both Datadog and Grepr so you can compare the two and confirm that Grepr-processed data is correct before you cut over.

To see more information and configuration examples, select the tab for your preferred collector:

To send logs and APM data to Grepr, add Agent environment variables in spec.override.nodeAgent.env as shown below. Restart the Agent for the changes to be deployed.

To learn more about the fields of the custom resource, see the DatadogAgent configuration reference .

  • Logs: add DD_LOGS_CONFIG_LOGS_DD_URL set to the ingest URL and DD_LOGS_CONFIG_USE_HTTP set to "true". Grepr accepts HTTP and HTTPS only.
  • APM: add DD_APM_DD_URL set to the ingest URL.
datadog-agent.yaml
apiVersion: datadoghq.com/v2alpha1 kind: DatadogAgent metadata: name: datadog spec: global: site: datadoghq.com credentials: apiKey: <dd-api-key> features: logCollection: enabled: true override: nodeAgent: env: # --- Logs — omit if you are forwarding APM data only --- - name: DD_LOGS_CONFIG_LOGS_DD_URL value: "<ingestion-url>" - name: DD_LOGS_CONFIG_USE_HTTP value: "true" # --- APM — omit if you are forwarding logs only --- - name: DD_APM_DD_URL value: "<ingestion-url>"

Every value in the spec.override.nodeAgent.env list must be a string. Quote boolean and numeric values, such as value: "true", because Kubernetes rejects non-string environment variable values.

To dual ship to Datadog and Grepr, add Grepr as an additional endpoint. See Dual Shipping .

datadog-agent.yaml
# Leave the intake URLs unset so data keeps flowing to Datadog. spec: override: nodeAgent: env: # --- Logs — omit if you are forwarding APM data only --- - name: DD_LOGS_CONFIG_ADDITIONAL_ENDPOINTS value: '[{"api_key":"<dd-api-key>","Host":"<ingestion-host>","Port":443}]' # --- APM — omit if you are forwarding logs only --- - name: DD_APM_ADDITIONAL_ENDPOINTS value: '{"<ingestion-url>":["<dd-api-key>"]}'

Send Datadog Agent metrics to Grepr

To reduce your Datadog Agent metrics with a metrics pipeline, configure the agent to send its metrics to the integration’s ingest URL instead of to Datadog. The pipeline sends the reduced metrics to Datadog, so don’t also send the agent’s metrics to Datadog directly. To find the ingest URL, see Step 3: Configure forwarding to Grepr.

Set the agent’s dd_url to the ingest URL, and restart the agent:

  • In the datadog.yaml configuration file, set dd_url: <ingestion-url>.
  • In an environment variable, such as in a Kubernetes manifest, the Datadog Operator’s spec.override.nodeAgent.env, or a docker run command, set DD_DD_URL to <ingestion-url>.

Set DD_DD_URL on every Datadog Agent component that sends metrics: the node agents, the Cluster Agent, and any cluster checks runners, which send the metrics of the cluster checks they run. A component without the setting sends its metrics to Datadog directly.

With dd_url set to the ingest URL, the agent sends Grepr its metric series, its host metadata, its distribution metrics, and its service checks. The metrics pipeline reads the series, the distribution metrics, and the host metadata. For how Grepr sends the distribution metrics and service checks to Datadog, see Distribution metrics and Service checks and events.

Grepr reads metric series from the agent’s v2 series API only. See Limitations.

Service checks and events

When your pipeline sends metrics to Datadog, Grepr forwards the Datadog Agent’s service checks and events to Datadog as the agent sent them, for each host whose metrics the pipeline sends under the host’s own name. Grepr keeps forwarding them for 10 to 11 minutes after the pipeline stops sending that host’s metrics under its name. A host whose metrics reach Datadog only in an aggregate doesn’t appear in Datadog as itself, so Grepr doesn’t forward its service checks or events. A service check or event that names no host always goes to Datadog.

If an agent also sends to Datadog directly, as with dual shipping, stop it from sending its service checks and events there. Otherwise, Datadog receives them twice, one copy from the agent and one from Grepr, and a service check monitor counts each copy as a check run.

Grepr forwards the agent’s flares to Datadog support without reading them, because the agent sends a flare only to its dd_url.

Distribution metrics

The Datadog Agent sends its distribution metrics as sketches. Grepr takes them into your pipeline with the agent’s other metrics, and the pipeline sends them to Datadog. To learn how a metrics pipeline reduces them, see Distribution metrics in Datadog. A pipeline that writes its metrics to a lake stores each point’s sketch in the data lake, in the form its lake step chooses. See Store distribution metrics in less space.

If an agent also sends its distribution metrics to Datadog directly, as with dual shipping, Datadog adds both copies, so it counts and bills those distributions twice. Add a drop rule for those metric names to keep the pipeline from sending them.

The same holds for two pipelines that read one integration and both send to Datadog: Datadog counts its distribution metrics twice. Send them from one pipeline only.

Forward events from an Azure event hub to Grepr

If you have an existing integration that sends events from an Azure event hub to Datadog, you can modify it to forward events to Grepr for processing before sending them to Datadog. An example use of this event hub-to-Datadog integration is when the event hub is used to queue log events from other Azure services. These log events are then forwarded to a Datadog endpoint for processing.

You can include Grepr in this integration by changing the destination URL from the Datadog endpoint to a Grepr ingestion URL, allowing you to use Grepr’s log processing features, such as log reduction, parsing, and enrichment on the events before they reach Datadog.

Adding Grepr to an event hub-to-Datadog integration requires:

  • An existing Azure Event Hubs-to-Datadog integration. The integration must be implemented to send events to a Datadog HTTP endpoint. Grepr does not support TCP.
  • A Datadog API key for your account. When sending events to Grepr, you must use the same API key that’s used for the direct Datadog integration.

Configure event forwarding to Grepr

To integrate Grepr into your Event Hubs-to-Datadog integration:

  1. Create a Grepr Datadog integration, add the integration to a Grepr pipeline, and create a source. For step-by-step instructions, see Use a Datadog integration in a Grepr pipeline.

  2. Get the ingestion URL for the Grepr integration by following the instructions in Step 3: Configure forwarding to Grepr, then skip the instructions for configuring collectors.

  3. In the Azure component that forwards events to Datadog, such as an Azure Function, replace the Datadog endpoint URL with the Grepr ingestion URL and include the path from the Datadog URL. For example, replace:

    var eventsEndpoint = "https://http-intake.logs.datadoghq.com/api/v2/logs";

    with:

    var eventsEndpoint = "https://1234567890123-yourorg.ingest.grepr.ai/api/v2/logs";
  4. Ensure the existing Datadog API key is also included in the request sent to Grepr.

After you make this configuration change, you can use your existing Grepr pipelines or create new pipelines to process the events before they are forwarded to Datadog.

Limitations

  • The Datadog integration supports only HTTP/HTTPS connections. TCP connections are not supported.
  • The Datadog integration does not support the use of Datadog log pipelines . Grepr processes and routes all logs before sending them to Datadog.
  • Grepr accepts Datadog Agent metric series from the v2 series API only. Datadog Agent version 7.81.2 or later uses the v2 API for Grepr by default. If your agent uses the v3 API for Grepr, such as version 7.81.0 or 7.81.1, configure the agent to use the v2 API for Grepr:
    • Set use_v3_api.series.enabled to datadog_only.
    • If use_v3_api.series.endpoints lists your Grepr ingestion URL, set that entry to false.
    • If the agent sends metrics to Grepr through observability_pipelines_worker.metrics.url, set observability_pipelines_worker.metrics.use_v3_api.series to false.
  • Grepr refuses the Datadog Agent’s v1 series API. The agent uses it only when use_v2_api.series is false; set it to true, its default.
  • Grepr refuses the Datadog Agent’s v3 sketches API. If serializer_experimental_use_v3_api.sketches.endpoints lists your Grepr ingestion URL, remove it.
  • Grepr forwards the Datadog Agent’s service checks and events to Datadog only for the hosts whose metrics your pipeline sends under their own names. See Service checks and events.
Last updated on