Skip to content
Install the CLI

Reference Package catalog

victoria-metrics-alert

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

VictoriaMetrics alerting: VMAlert and VMAlertmanager

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

StabilityStable
package valuepackages.victoria-metrics-alert
Default software version1.156.0
Default aliasesvmAlert

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
vmClusterRequired
vmOperatorRequired
alertmanagerConfigOptional
prometheusOptional
  • Type: list of string
  • Default: [ ]

The Alertmanager configuration file, written into the CR’s configRawYaml so that the package renders no configuration Secret. Same content and the same refusal of inline credentials as settings. Mutually exclusive with settings and the alertmanagerConfig dependency.

  • Type: null or (attribute set of anything)
  • Default: null

Extra fields deep-merged into the VMAlertmanager CR spec. The package refuses configSecret and configRawYaml, which the configuration options and the alertmanagerConfig dependency decide, and image, replicaCount, retention, storage, secrets, configMaps, and resources, which have options of their own. Setting topologySpreadConstraints here replaces the default pod spread constraints set from the availability level.

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

Alertmanager container image for the VMAlertmanager CR. It cannot take a digest: the operator reads the tag as a semantic version to choose feature flags.

  • Type: submodule

  • Default:

    {
    digest = null;
    pullPolicy = null;
    repository = "quay.io/prometheus/alertmanager";
    tag = "v0.33.1";
    }

Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.

  • Type: null or string
  • Default: the package’s digest while tag is the package’s tag, otherwise null

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

  • Type: null or string
  • Default: null

Who resolved this pin, for the record. Null when unknown.

  • Type: null or string
  • Default: null

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

  • Type: null or string
  • Default: null

Image repository, registry host included.

  • Type: string
  • Default: "quay.io/prometheus/alertmanager"

When this pin was resolved, RFC 3339. Null when unknown.

  • Type: null or string
  • Default: null

Revision of the source the image was built from, when Kix built it. Null for upstream images.

  • Type: null or string
  • Default: null

Image tag. What was asked for.

  • Type: string
  • Default: "v0.33.1"

Number of VMAlertmanager 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 = "256Mi";
    };
    requests = {
    cpu = "50m";
    memory = "128Mi";
    };
    }

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

alertmanager.resources.limits.ephemeral-storage

Section titled “alertmanager.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: "256Mi"

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: "50m"

alertmanager.resources.requests.ephemeral-storage

Section titled “alertmanager.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: "128Mi"
  • Type: string
  • Default: "120h"

Secrets mounted into Alertmanager pods (credentials referenced from config).

  • Type: list of string
  • Default: [ ]

The Alertmanager configuration file, alertmanager.yaml (global, route, receivers, inhibit_rules, templates), rendered into a Secret the CR’s configSecret names. A value replaces the package’s configuration as a whole rather than merging into it, because the package’s routing tree names its own null receiver. Null uses the package’s configuration, which routes every alert to the receiver null. A credential written inline (auth_password, routing_key, api_key, a Slack api_url, and the like) is refused: take it from a file (api_url_file, password_file, credentials_file) mounted through secrets. Mutually exclusive with configRawYaml and the alertmanagerConfig dependency.

  • Type: null or (attribute set of anything)
  • Default: null: the package’s configuration, which routes every alert to the receiver null

PVC spec for the alertmanager volumeClaimTemplate. null = emptyDir: silences and the notification log survive single-pod restarts via pair gossip, but a simultaneous restart (node reboot) drops them. Set for anything beyond a trial.

  • Type: anything
  • Default: null
  • Type: string
  • Default: "30s"

vmalert flags for the VMAlert CR’s extraArgs, keyed by flag name without the leading dash.

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

Extra fields deep-merged into the VMAlert CR spec. The package refuses datasource.url, remoteWrite.url, remoteRead.url, and notifiers, which come from the vmCluster dependency and the alertmanager this package runs, and image, replicaCount, evaluationInterval, selectAllByDefault, resources, and extraArgs, which have options of their own. Setting topologySpreadConstraints here replaces the default pod spread constraints set from the availability level.

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

Run the package’s post-deploy probe (kix.healthCheck) once its resources are ready. A failing probe fails the deploy before the activation switches.

  • Type: boolean
  • Default: false

Seconds the probe keeps re-checking before it gives up, so a target still restarting from the rollout does not fail the deploy. The Job’s deadline is sized from it.

  • Type: signed integer
  • Default: 90

Container image for this instance. Set it from a pin file (kix.pins) so the deployed reference is committed and resolved.

  • Type: submodule

  • Default:

    {
    digest = "sha256:4fea7d1a888d4db4ff18804434ef0f3ca8eb6482e289c50d32001c2db218287c";
    pullPolicy = null;
    repository = "docker.io/victoriametrics/vmalert";
    tag = "v1.156.0";
    }

Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.

  • Type: null or string
  • Default: the package’s digest while tag is the package’s tag, otherwise null

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

  • Type: null or string
  • Default: null

Who resolved this pin, for the record. Null when unknown.

  • Type: null or string
  • Default: null

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

  • Type: null or string
  • Default: null

Image repository, registry host included.

  • Type: string
  • Default: "docker.io/victoriametrics/vmalert"

When this pin was resolved, RFC 3339. Null when unknown.

  • Type: null or string
  • Default: null

Revision of the source the image was built from, when Kix built it. Null for upstream images.

  • Type: null or string
  • Default: null

Image tag. What was asked for.

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

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

Number of vmalert 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 = "512Mi";
    };
    requests = {
    cpu = "100m";
    memory = "256Mi";
    };
    }

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

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"

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: "100m"

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: "256Mi"

Evaluate all VMRules (and converted PrometheusRules) cluster-wide.

  • Type: boolean
  • Default: true