Skip to content
Install the CLI

Reference Package catalog

victoria-metrics-cluster

These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.

VictoriaMetrics cluster: vmstorage, vmselect and vminsert through a VMCluster CR

This page is generated from kix/packages/stable/victoria-metrics-cluster.

StabilityStable
package valuepackages.victoria-metrics-cluster
Default software version1.156.0
Default aliasesprometheusServer, vmCluster

Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set deps.<name> in your cluster definition. See Declaring dependencies for how required and optional dependencies work.

DependencyRequirement
vmOperatorRequired
prometheusOptional
storageClassesOptional

Image tag for all three components (spec.clusterVersion, used verbatim by the operator). Cluster-mode images carry the -cluster suffix.

  • Type: string
  • Default: "v1.156.0-cluster"

Extra fields deep-merged into the VMCluster CR spec via lib.recursiveUpdate. Escape hatch for fields not exposed as typed options (downsampling, requestsLoadBalancer, per-component overrides). Setting topologySpreadConstraints on vmstorage, vmselect, or vminsert here replaces the default pod spread constraints set from the availability level.

  • Type: attribute set of anything
  • Default: { }

Render the package’s alert rules when a prometheus dependency is present. The operator’s scrape of the workload does not depend on it.

  • Type: boolean
  • Default: true

VMStorageDiskNearlyFull fires when a vmstorage node has less than this percentage of its usable disk left, where usable is the stored data plus the free space above -storage.minFreeDiskSpaceBytes. Below that limit the node turns read-only. The default follows upstream’s DiskRunsOutOfSpace rule (80% used).

  • Type: integer between 1 and 99 (both inclusive)
  • Default: 20

Copies of every sample across vmstorage nodes. The operator propagates it to vminsert and vmselect (-replicationFactor), so queries stay complete with one vmstorage down. Defaults from the cluster’s availability level.

  • Type: signed integer
  • Default: 1
  • Type: string
  • Default: "30d"

Drives -dedup.minScrapeInterval on vmselect and vmstorage. Scrapers (victoria-metrics-agent) must scrape at this interval; read it via out.scrapeInterval.

  • Type: string
  • Default: "30s"

Operator-applied hardened security contexts on operand pods.

  • Type: boolean
  • Default: true

Extra vminsert flags, keyed by flag name without the leading dash. The package refuses retentionPeriod and replicationFactor, which follow the options of the same name, and httpListenAddr, because out.remoteWriteUrl names port 8480.

  • Type: attribute set of string
  • Default: { }

Number of vminsert replicas. Defaults from the cluster’s availability level.

  • Type: signed integer
  • Default: 1

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

  • Type: submodule

  • Default:

    {
    limits = {
    memory = "1Gi";
    };
    requests = {
    cpu = "500m";
    memory = "512Mi";
    };
    }

Dynamic resource claims the container uses. Null leaves it unset.

  • Type: null or (list of (submodule))
  • Default: null

Name of an entry in the pod’s resourceClaims.

  • Type: string

Request within the claim to use. Null uses the whole claim.

  • Type: null or string
  • Default: null

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

vminsert.resources.limits.ephemeral-storage

Section titled “vminsert.resources.limits.ephemeral-storage”

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "1Gi"

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "500m"

vminsert.resources.requests.ephemeral-storage

Section titled “vminsert.resources.requests.ephemeral-storage”

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "512Mi"

Extra vmselect flags, keyed by flag name without the leading dash. The package refuses dedup.minScrapeInterval, retentionPeriod, and replicationFactor, which follow scrapeInterval, retentionPeriod, and replicationFactor, and httpListenAddr, because out.serviceUrl names port 8481.

  • Type: attribute set of string
  • Default: { }

Number of vmselect replicas. Defaults from the cluster’s availability level.

  • Type: signed integer
  • Default: 1

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

  • Type: submodule

  • Default:

    {
    limits = {
    memory = "1Gi";
    };
    requests = {
    cpu = "500m";
    memory = "512Mi";
    };
    }

Dynamic resource claims the container uses. Null leaves it unset.

  • Type: null or (list of (submodule))
  • Default: null

Name of an entry in the pod’s resourceClaims.

  • Type: string

Request within the claim to use. Null uses the whole claim.

  • Type: null or string
  • Default: null

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

vmselect.resources.limits.ephemeral-storage

Section titled “vmselect.resources.limits.ephemeral-storage”

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "1Gi"

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "500m"

vmselect.resources.requests.ephemeral-storage

Section titled “vmselect.resources.requests.ephemeral-storage”

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "512Mi"

Extra vmstorage flags, keyed by flag name without the leading dash. The package refuses dedup.minScrapeInterval, retentionPeriod, and replicationFactor, which follow scrapeInterval, retentionPeriod, and replicationFactor.

  • Type: attribute set of string
  • Default: { }

Minimum 3 for replicationFactor 2 with one-node failure headroom. Defaults from the cluster’s availability level.

  • Type: signed integer
  • Default: 1

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

  • Type: submodule

  • Default:

    {
    limits = {
    memory = "4Gi";
    };
    requests = {
    cpu = "1";
    memory = "2Gi";
    };
    }

Dynamic resource claims the container uses. Null leaves it unset.

  • Type: null or (list of (submodule))
  • Default: null

Name of an entry in the pod’s resourceClaims.

  • Type: string

Request within the claim to use. Null uses the whole claim.

  • Type: null or string
  • Default: null

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

vmstorage.resources.limits.ephemeral-storage

Section titled “vmstorage.resources.limits.ephemeral-storage”

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "4Gi"

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "1"

vmstorage.resources.requests.ephemeral-storage

Section titled “vmstorage.resources.requests.ephemeral-storage”

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "2Gi"

PersistentVolumeClaim spec for the vmstorage volumeClaimTemplate (operator-created claims). Deep-merged over the package’s spec, which requests 20Gi. storageClassName is refused here; set vmstorage.storageClassName.

  • Type: attribute set of anything
  • Default: { resources.requests.storage = "20Gi"; }

StorageClass for vmstorage claims. null = take it from the optional storageClasses dep, or fall back to the cluster default StorageClass.

  • Type: null or string
  • Default: null