victoria-metrics-single

by NaPs

Helm chartv0.0.6App 1.34.7

Victoria Metrics Single version - high-performance, cost-effective and scalable TSDB, long-term remote storage for Prometheus

About this chart

Victoria Metrics Helm Chart for Single Version

This is a fork of https://github.com/VictoriaMetrics/helm-charts/tree/master/charts/victoria-metrics-single including the PR #13 waiting for its merge.

I do not recommend using this chart.

Prerequisites Details

Chart Details

This chart will do the following:

  • Rollout victoria metrics single

Installing the Chart

To install the chart with the release name my-release:

helm install -n my-release vm/victoria-metrics-single

Configuration

The following table lists the configurable parameters of the victoria metrics cluster chart and their default values.

ParameterDescriptionDefault
server.enabledEnable deployment of server component. Deployed as StatefulSettrue
server.nameServer container nameserver
server.image.repositoryImage repositoryvictoriametrics/victoria-metrics
server.image.tagImage tagv1.32.8
server.image.pullPolicyImage pull policyIfNotPresent
server.priorityClassNameName of Priority Class""
server.fullnameOverrideOverrides the full name of server component""
server.retentionPeriodData retention period in month1
server.extraArgsExtra command line arguments for server component{}
server.tolerationsArray of tolerations object. https://kubernetes.io/docs/concepts/configuration/assign-pod-node/{}
server.nodeSelectorPod's node selector. https://kubernetes.io/docs/user-guide/node-selection/{}
server. affinity Pod affinity{}
server.persistentVolume.enabledCreate/use Persistent Volume Claim for server component. Empty dir if falsetrue
server.persistentVolume.accessModesArray of access modes["ReadWriteOnce"]
server.persistentVolume.annotationsPersistant volume annotations{}
server.persistentVolume.existingClaimExisting Claim name""
server.persistentVolume.sizeSize of the volume. Better to set the same as resource limit memory property16Gi
server.persistentVolume.mountPathMount path""/storage
server.persistentVolume.subPathMount subpath""
server.podAnnotationsPod's annotations{}
server.podManagementPolicyPod's management policyOrderedReady
server.resourcesResource object{}
server.securityContextPod's security context. https://kubernetes.io/docs/tasks/configure-pod-container/security-context/{}
server.ingress.enabledEnable deployment of ingress for server componentfalse
server.ingress.annotationsIngress annotations{}
server.ingress.extraLabelsIngress extra labels{}
server.ingress.hostsArray of host objects[]
server.ingress.tlsArray of TLS objects[]
server.service.annotationsService annotations{}
server.service.labelsService lables{}
server.service.clusterIPService ClusterIP""
server.service.externalIPsService External IPs. https://kubernetes.io/docs/user-guide/services/#external-ips[]
server.service.loadBalancerIPService load balacner IP"
server.service.loadBalancerSourceRangesLoad balancer source range[]
server.service.servicePortService port8428
server.service.typeService typeClusterIP
server.serviceMonitor.enabledEnable deployment of Service Monitor for server component. This is Prometheus operator objectfalse
server.serviceMonitor.extraLabelsService Monitor labels{}
server.serviceMonitor.annotationsService Monitor annotations{}
server.serviceMonitor.intervalCommented. Prometheus scare interval for server component15s
server.serviceMonitor.scrapeTimeoutCommented. Prometheus pre-scrape timeout for server component5s

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install -n my-release -f values.yaml vm/victoria-metrics-single

Tip: You can use the default values.yaml

Deploy victoria-metrics-single with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has victoria-metrics-single on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartvictoria-metrics-single is pinned at v0.0.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply