victoria-metrics-single
by NaPs
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
- Victoria Metrics helm repository is added.
- PV support on underlying infrastructure
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.
| Parameter | Description | Default |
|---|---|---|
server.enabled | Enable deployment of server component. Deployed as StatefulSet | true |
server.name | Server container name | server |
server.image.repository | Image repository | victoriametrics/victoria-metrics |
server.image.tag | Image tag | v1.32.8 |
server.image.pullPolicy | Image pull policy | IfNotPresent |
server.priorityClassName | Name of Priority Class | "" |
server.fullnameOverride | Overrides the full name of server component | "" |
server.retentionPeriod | Data retention period in month | 1 |
server.extraArgs | Extra command line arguments for server component | {} |
server.tolerations | Array of tolerations object. https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | {} |
server.nodeSelector | Pod's node selector. https://kubernetes.io/docs/user-guide/node-selection/ | {} |
server. affinity | Pod affinity | {} |
server.persistentVolume.enabled | Create/use Persistent Volume Claim for server component. Empty dir if false | true |
server.persistentVolume.accessModes | Array of access modes | ["ReadWriteOnce"] |
server.persistentVolume.annotations | Persistant volume annotations | {} |
server.persistentVolume.existingClaim | Existing Claim name | "" |
server.persistentVolume.size | Size of the volume. Better to set the same as resource limit memory property | 16Gi |
server.persistentVolume.mountPath | Mount path | ""/storage |
server.persistentVolume.subPath | Mount subpath | "" |
server.podAnnotations | Pod's annotations | {} |
server.podManagementPolicy | Pod's management policy | OrderedReady |
server.resources | Resource object | {} |
server.securityContext | Pod's security context. https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | {} |
server.ingress.enabled | Enable deployment of ingress for server component | false |
server.ingress.annotations | Ingress annotations | {} |
server.ingress.extraLabels | Ingress extra labels | {} |
server.ingress.hosts | Array of host objects | [] |
server.ingress.tls | Array of TLS objects | [] |
server.service.annotations | Service annotations | {} |
server.service.labels | Service lables | {} |
server.service.clusterIP | Service ClusterIP | "" |
server.service.externalIPs | Service External IPs. https://kubernetes.io/docs/user-guide/services/#external-ips | [] |
server.service.loadBalancerIP | Service load balacner IP | " |
server.service.loadBalancerSourceRanges | Load balancer source range | [] |
server.service.servicePort | Service port | 8428 |
server.service.type | Service type | ClusterIP |
server.serviceMonitor.enabled | Enable deployment of Service Monitor for server component. This is Prometheus operator object | false |
server.serviceMonitor.extraLabels | Service Monitor labels | {} |
server.serviceMonitor.annotations | Service Monitor annotations | {} |
server.serviceMonitor.interval | Commented. Prometheus scare interval for server component | 15s |
server.serviceMonitor.scrapeTimeout | Commented. Prometheus pre-scrape timeout for server component | 5s |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartvictoria-metrics-single is pinned at v0.0.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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