Open Source
All templates and components

Cluster component

VictoriaMetrics operator

Runs the metrics and log stores.

Memory when idle
about 20 MiB
CI measures it once the app is ready and before any traffic. Leave room for more.
Tested on
x86 and ARM servers
Installed by default
Optional on one machine, recommended on several

Introduction

The VictoriaMetrics operator creates and manages the metrics and log stores from custom resources such as VMSingle and VLSingle. It also reads Prometheus operator objects, so existing app manifests keep working.

You do not install it on its own. VictoriaMetrics and VictoriaLogs need it, and Zeabur OSS installs it first. It needs cert-manager (or another component that provides certificates), which issues the certificate for its admission webhook.

It manages its objects in every namespace. It can read every Secret, create Pods in any namespace and create ClusterRoles and bindings, so treat its token as cluster-admin.

Use it

The operator has no Zeabur OSS screen. It starts to work when you install VictoriaMetrics or VictoriaLogs. Check that it runs and list what it manages:

kubectl -n observability get deploy victoria-metrics-operator
kubectl get vmsingle,vlsingle -A

To write your own objects, such as scrape targets and alert rules, see the operator documentation.

Remove it

Before it goes, a cleanup Job deletes every VictoriaMetrics and VictoriaLogs object in every namespace. This includes stores, agents, alert rules, scrape objects, probes and the notification channels stored as VMAlertmanagerConfig. Remove VictoriaMetrics and VictoriaLogs first, and keep a copy of any rules or channels you want to reuse.

The CRDs stay, and so does the cleanup hook’s ClusterRole and ClusterRoleBinding. Zeabur OSS refuses to remove it while another installed component needs it. See Remove components.

Troubleshooting

Creating a VictoriaMetrics object fails with a webhook error

The admission webhook needs its certificate. Check that it is ready and that the operator Pod runs:

kubectl -n observability get certificate victoria-metrics-operator-validation
kubectl -n observability get pods

Technical details

This release

Provides
observability-operator
Licence
Apache-2.0

Tested in CI

CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.

DistributionPlatformKubernetesPassedIdle memory
k3slinux/amd64v1.37.219 MiB
k3slinux/arm64v1.37.219 MiB
kindlinux/amd64v1.37.020 MiB
kindlinux/arm64v1.37.020 MiB
kubesololinux/amd64v1.36.621 MiB
kubesololinux/arm64v1.36.621 MiB
rke2linux/amd64v1.37.220 MiB
rke2linux/arm64v1.37.220 MiB

Security

Manages VictoriaMetrics and VictoriaLogs objects and their workloads in all namespaces. It can read every Secret, create pods in any namespace, and create ClusterRoles and bindings, so its token equals cluster-admin.

What it installs

  • operator 0.68.1

Needs

  • any certificates component