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
- Homepage
- docs.victoriametrics.com
Tested in CI
CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.
| Distribution | Platform | Kubernetes | Passed | Idle memory |
|---|---|---|---|---|
| k3s | linux/amd64 | v1.37.2 | 19 MiB | |
| k3s | linux/arm64 | v1.37.2 | 19 MiB | |
| kind | linux/amd64 | v1.37.0 | 20 MiB | |
| kind | linux/arm64 | v1.37.0 | 20 MiB | |
| kubesolo | linux/amd64 | v1.36.6 | 21 MiB | |
| kubesolo | linux/arm64 | v1.36.6 | 21 MiB | |
| rke2 | linux/amd64 | v1.37.2 | 20 MiB | |
| rke2 | linux/arm64 | v1.37.2 | 20 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