Observability
Send metrics, logs, and traces directly from Chalk to your Datadog account with Vector.
Use the Vector exporter in your Chalk cluster to send metrics, logs, or traces directly to Datadog. You can enable each signal independently. If you already use a Datadog Agent to scrape Chalk, see Legacy OpenMetrics export.
You need:
datadoghq.com or datadoghq.euIf Exporters is missing from your telemetry settings, contact Chalk support to enable access.
Store your Datadog API key in AWS Secrets Manager in the AWS account and region used by Chalk. Use the raw API key as the secret value, without JSON or surrounding quotation marks. Copy the secret’s full ARN, for example:
arn:aws:secretsmanager:us-east-1:123456789012:secret:datadog-api-key-AbCdEfChalk needs permission to read this secret. If you need help storing the key or granting access, ask your cloud administrator or Chalk support. Have the ARN ready for the next step.
datadoghq.com (default)
or datadoghq.eu (EU).To identify metrics from this cluster, add a tag under Export to Datadog → VRL → Metrics remap VRL. Keep any existing remap code and choose a value for your environment.
.tags.chalk_export = "chalk-production"Save and confirm the update, then run queries in that Chalk environment. In the Datadog
Metrics Catalog, filter by the tag chalk_export:chalk-production. Open a matching metric in Metrics
Explorer and confirm that it has samples from after you enabled the export.
Run a traced query and open its Trace tab in Chalk. In Datadog APM, look for spans from that query in the same time range and check the operation names.
chalk-datadog-check-001 with a unique message for this test.from chalk.clogging import chalk_logger
# Inside your resolver:
chalk_logger.info("chalk-datadog-check-001")Open Logs → Explorer in your Datadog account. Select a time range covering the test, clear unrelated filters, and search for your exact message in quotation marks:
"chalk-datadog-check-001"Allow time for delivery and ingestion. Open the matching log and confirm that its message and time match the test you ran.
The export is working when the same message appears in Chalk and Datadog. You can then remove the test log call from your resolver.
If you can see the test message in Chalk but not in Datadog:
If the message still does not arrive, send Chalk support your Chalk environment, Datadog site, test message, query ID, and the time of the test. Do not include your API key in the support message.
After verifying delivery, use Vector Remap Language (VRL) to change events before export. Under Exporters → Shared VRL, remaps apply to every export destination for the corresponding signal. Under Export to Datadog → VRL, remaps apply only to Datadog, after the shared remaps. Save and confirm your changes, then repeat the test above.