Integration with Datadog
Datadog (opens in a new tab) is a popular fully managed observability service. This guide demonstrates how to set up Cube Cloud to export logs to Datadog.
First, enable monitoring integrations in Cube Cloud.
To export logs to Datadog, go to Organization Settings → API Keys obtain an API key:
[sinks.datadog_logs] type = "datadog_logs" inputs = [ "cubejs-server", "refresh-scheduler", "ext-db", "warmup-job", "cubestore" ] default_api_key = "0746ad78335ac7c0219ee38b47ada6a6" site = "datadoghq.eu" compression = "gzip" healthcheck = false
Note that Datadog accounts belong to specific sites (opens in a new tab)
throughout the world. Use the
site option to configure the sink appropriately.
When miscofigured, Vector agent outputs the following error:
Client request was forbidden.
Commit the configuration for Vector, it should take effect in a minute. Then, navigate to Logs in Datadog and watch the logs coming: