Start your 14-day free trial today & Get 20% Off All Annual Managed ELK Plans

No Credit Card Required

Try Logit.io Free

Already have an account? Sign In

Send data via GCloud GKE Metrics to your Logstash instance provided by Logit.io

GCloud GKE Metrics

Ship Azure AKS metrics using VictoriaMetrics vmagent

Vmagent is a tiny but mighty agent which helps you collect metrics from various sources and store them in VictoriaMetrics

Step 1 - PrerequisitesCopy

This guide assumes you already have a GKE cluster created with Google Cloud SDK and kubectl installed.

Step 2 - Verify your version of HelmCopy

Use the Helm version command to verify your version of Helm

helm version

Step 3 - Add VictoriaMetrics Helm ChartCopy

Run the following to add the Victoria Metrics Helm chart.

helm repo add vm https://victoriametrics.github.io/helm-charts/

Step 4 - Export default configuration yamlCopy

Export the default configuration to a yaml file so that we can make an edit.

helm show values vm/victoria-metrics-agent >> vmagent-kubernetes.yml

Step 5 - Add remoteWriteUrlsCopy

Open the exported configuration in a text editor to add in the remoteWriteUrls.

You will need to edit Line 65 of the vmagent-kubernetes.yml

From:

# WARN: need to specify at least one remote write url or one multi tenant url
remoteWriteUrls: []
# remoteWriteUrls:
#   - http://vm-insert:8480/insert/0/prometheus
#   - http://prometheus:8480/insert/0/prometheus

To:

# WARN: need to specify at least one remote write url or one multi tenant url
remoteWriteUrls: ["https://user:[email protected]:port/api/v1/write"]
# remoteWriteUrls:
#   - http://vm-insert:8480/insert/0/prometheus
#   - http://prometheus:8480/insert/0/prometheus

Step 6 - install Helm chartCopy

You are now ready to install the helm chart.

helm --namespace=victoriametrics install vmagent vm/victoria-metrics-agent --create-namespace -f vmagent-kubernetes.yml
Toggle View

Expand View

Return to Search

© 2022 Logit.io Ltd, All rights reserved.