mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
30dd4cdc0d
### Describe Your Changes added make target, which updates `{{% available_from "#" %}}` shortcode to `{{% available_from "$(PKG_TAG)" %}}` if PKG_TAG matches expression `v.*`. `{{% available_from %}}` shortcode was introduced in https://github.com/VictoriaMetrics/vmdocs/pull/89 to show a reference to a version in a changelog since which a feature was introduced related issue https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7376 ### Checklist The following checks are **mandatory**: - [ ] My change adheres [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/contributing/).
52 lines
1.8 KiB
Markdown
52 lines
1.8 KiB
Markdown
---
|
|
weight: 5
|
|
title: DataDog Agent setup
|
|
disableToc: true
|
|
menu:
|
|
docs:
|
|
parent: "victorialogs-data-ingestion"
|
|
weight: 5
|
|
url: /victorialogs/data-ingestion/datadog-agent/
|
|
aliases:
|
|
- /VictoriaLogs/data-ingestion/DataDogAgent.html
|
|
---
|
|
Datadog Agent doesn't support custom path prefix, so for this reason it's required to use [VMAuth](https://docs.victoriametrics.com/vmauth/) or any other
|
|
reverse proxy to append `/insert/datadog` path prefix to all Datadog API logs requests.
|
|
|
|
In case of [VMAuth](https://docs.victoriametrics.com/vmauth/) your config should look like:
|
|
|
|
```yaml
|
|
unauthorized_user:
|
|
url_map:
|
|
- src_paths:
|
|
- "/api/v2/logs"
|
|
url_prefix: "`<victoria-logs-base-url>`/insert/datadog/"
|
|
```
|
|
|
|
To start ingesting logs from DataDog agent please specify a custom URL instead of default one for sending collected logs to [VictoriaLogs](https://docs.victoriametrics.com/VictoriaLogs/):
|
|
|
|
```yaml
|
|
logs_enabled: true
|
|
logs_config:
|
|
logs_dd_url: `<vmauth-base-url>`
|
|
use_http: true
|
|
```
|
|
|
|
While using [Serverless DataDog plugin](https://github.com/DataDog/serverless-plugin-datadog) please set VictoriaLogs endpoint using `LOGS_DD_URL` environment variable:
|
|
|
|
```yaml
|
|
custom:
|
|
datadog:
|
|
apiKey: fakekey # Set any key, otherwise plugin fails
|
|
provider:
|
|
environment:
|
|
LOGS_DD_URL: `<vmauth-base-url>`/ # VictoriaLogs endpoint for DataDog
|
|
```
|
|
|
|
Substitute the `<vmauth-base-url>` address with the real address of VMAuth proxy.
|
|
|
|
See also:
|
|
|
|
- [Data ingestion troubleshooting](https://docs.victoriametrics.com/victorialogs/data-ingestion/#troubleshooting).
|
|
- [How to query VictoriaLogs](https://docs.victoriametrics.com/victorialogs/querying/).
|
|
- [Docker-compose demo for Datadog integration with VictoriaLogs](https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/deployment/docker/victorialogs/datadog-agent).
|