vmagent docs: describe vmagent integration with VictoriaMetrics Cloud

This commit is contained in:
Ivan Yatskevich 2024-08-29 16:48:37 +02:00
parent 037df27dae
commit 9024b890e6
No known key found for this signature in database
GPG key ID: 4933188C6D387029

View file

@ -1623,7 +1623,19 @@ Two types of auth are supported:
## VictoriaMetrics Cloud integration ## VictoriaMetrics Cloud integration
TBD 1. Create a [VictoriaMetrics Cloud](https://cloud.victoriametrics.com/signUp?utm_source=website&utm_campaign=docs_vm_vmagent_mom) account (it's free!), if you don't have one.
1. [Create a new deployment](https://docs.victoriametrics.com/victoriametrics-cloud/quickstart/#creating-deployments) (Single-node or Cluster) to which your `vmagent` instances will send metrics.
1. Get the VictoriaMetrics Cloud URL and authentication token (we recommend using write-only token).
1. Send metrics to VictoriaMetrics Cloud:
Start `vmagent` with the following command-line flags:
```
-remoteWrite.bearerTokenFile=/{bearer_token_file_path} \
-remoteWrite.url=https://{victoriametrics_cloud_endpoint}/api/v1/write \
```
These flags will configure the following:
- `remoteWrite.bearerTokenFile` - authentication for VictoriaMetrics Cloud
- `remoteWrite.url` - VictoriaMetrics Cloud endpoint to push metrics to.
1. Restart `vmagent` to apply newly added command-line flags.
## mTLS protection ## mTLS protection