From 9024b890e6321463a7df71bfb564afdc8b5967a5 Mon Sep 17 00:00:00 2001 From: Ivan Yatskevich Date: Thu, 29 Aug 2024 16:48:37 +0200 Subject: [PATCH] vmagent docs: describe vmagent integration with VictoriaMetrics Cloud --- docs/vmagent.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/vmagent.md b/docs/vmagent.md index 062796743..bb988a548 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -1623,7 +1623,19 @@ Two types of auth are supported: ## 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