2022-10-24 15:00:25 +00:00
---
sort: 99
2023-04-30 10:31:45 +00:00
weight: 99
2024-07-31 14:03:18 +00:00
title: Enterprise
2023-04-30 10:31:45 +00:00
menu:
docs:
2024-07-31 14:03:18 +00:00
identifier: vm-enterprise
2023-10-13 11:54:33 +00:00
parent: 'victoriametrics'
2023-04-30 10:31:45 +00:00
weight: 99
aliases:
- /enterprise.html
2022-10-24 15:00:25 +00:00
---
2023-10-13 11:07:16 +00:00
VictoriaMetrics components are provided in two kinds - [Community edition ](https://victoriametrics.com/products/open-source/ )
and [Enterprise edition ](https://victoriametrics.com/products/enterprise/ ).
2022-10-24 15:00:25 +00:00
VictoriaMetrics community components are open source and are free to use - see [the source code ](https://github.com/VictoriaMetrics/VictoriaMetrics/ )
and [the license ](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/LICENSE ).
2023-10-18 18:06:23 +00:00
VictoriaMetrics Enterprise components are available in binary form at [releases page ](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/latest )
2023-10-13 11:07:16 +00:00
and at [docker hub ](https://hub.docker.com/u/victoriametrics ). Enterprise binaries and packages have `enterprise` suffix in their names.
2022-10-24 15:00:25 +00:00
2023-10-13 11:07:16 +00:00
## Valid cases for VictoriaMetrics Enterprise
The use of VictoriaMetrics Enterprise components is permitted in the following cases:
- Evaluation use in non-production setups. Please, request trial license [here ](https://victoriametrics.com/products/enterprise/trial/ )
and then pass it via `-license` or `-licenseFile` command-line flags as described [in these docs ](#running-victoriametrics-enterprise ).
2022-10-24 15:00:25 +00:00
- Production use if you have a valid enterprise contract or valid permit from VictoriaMetrics company.
2023-10-13 11:07:16 +00:00
Please contact us via [this page ](https://victoriametrics.com/products/enterprise/ ) if you are intereseted in such a contract.
2022-10-24 15:00:25 +00:00
2024-07-30 07:59:29 +00:00
- [VictoriaMetrics Cloud ](https://docs.victoriametrics.com/victoriametrics-cloud/ ) is built on top of VictoriaMetrics Enterprise.
2022-10-24 15:00:25 +00:00
2023-10-13 11:07:16 +00:00
See [these docs ](#running-victoriametrics-enterprise ) for details on how to run VictoriaMetrics enterprise.
2022-10-24 15:00:25 +00:00
## VictoriaMetrics enterprise features
2023-10-13 11:07:16 +00:00
VictoriaMetrics Enterprise includes [all the features of the community edition ](https://docs.victoriametrics.com/#prominent-features ),
2022-10-24 15:00:25 +00:00
plus the following additional features:
2024-03-01 00:51:41 +00:00
- Stable releases with long-term support, which contains important bugfixes and security fixes. See [these docs ](https://docs.victoriametrics.com/lts-releases/ ).
2024-02-06 13:52:33 +00:00
- First-class consulting and technical support provided by the core VictoriaMetrics dev team.
- [Monitoring of monitoring ](https://victoriametrics.com/products/mom/ ) - this feature allows forecasting
and preventing possible issues in VictoriaMetrics setups.
- [Enterprise security compliance ](https://victoriametrics.com/security/ ).
- Prioritizing of feature requests from Enterprise customers.
2024-02-12 09:00:35 +00:00
On top of this, Enterprise package of VictoriaMetrics includes the following features:
2024-02-06 13:52:33 +00:00
2022-10-24 15:00:25 +00:00
- [Downsampling ](https://docs.victoriametrics.com/#downsampling ) - this feature allows reducing storage costs
and increasing performance for queries over historical data.
- [Multiple retentions ](https://docs.victoriametrics.com/#retention-filters ) - this feature allows reducing storage costs
2023-10-13 11:07:16 +00:00
by specifying different retentions for different datasets.
2024-04-18 00:54:20 +00:00
- [Automatic discovery of vmstorage nodes ](https://docs.victoriametrics.com/cluster-victoriametrics/#automatic-vmstorage-discovery ) -
2022-10-28 10:07:40 +00:00
this feature allows updating the list of `vmstorage` nodes at `vminsert` and `vmselect` without the need to restart these services.
2024-04-01 13:41:55 +00:00
- [Anomaly Detection Service ](https://docs.victoriametrics.com/anomaly-detection ) - this feature allows automation and simplification of your alerting rules, covering [complex anomalies ](https://victoriametrics.com/blog/victoriametrics-anomaly-detection-handbook-chapter-2/ ) found in metrics data.
2024-04-18 00:03:58 +00:00
- [Backup automation ](https://docs.victoriametrics.com/vmbackupmanager/ ).
2024-04-18 01:35:44 +00:00
- [Advanced per-tenant stats ](https://docs.victoriametrics.com/pertenantstatistic/ ).
2024-04-18 00:08:18 +00:00
- [Advanced auth and rate limiter ](https://docs.victoriametrics.com/vmgateway/ ).
2024-04-17 21:38:16 +00:00
- [Automatic issuing of TLS certificates ](https://docs.victoriametrics.com/#automatic-issuing-of-tls-certificates ).
2024-02-06 15:40:48 +00:00
- [mTLS for all the VictoriaMetrics components ](https://docs.victoriametrics.com/#mtls-protection ).
2024-04-18 00:54:20 +00:00
- [mTLS for communications between cluster components ](https://docs.victoriametrics.com/cluster-victoriametrics/#mtls-protection ).
2024-04-17 23:49:41 +00:00
- [mTLS-based request routing ](https://docs.victoriametrics.com/vmauth/#mtls-based-request-routing ).
2024-04-17 23:31:37 +00:00
- [Kafka integration ](https://docs.victoriametrics.com/vmagent/#kafka-integration ).
- [Google PubSub integration ](https://docs.victoriametrics.com/vmagent/#google-pubsub-integration ).
2024-04-17 23:44:12 +00:00
- [Multitenant support in vmalert ](https://docs.victoriametrics.com/vmalert/#multitenancy ).
- [Ability to read alerting and recording rules from Object Storage ](https://docs.victoriametrics.com/vmalert/#reading-rules-from-object-storage ).
2024-04-17 23:49:41 +00:00
- [Ability to filter incoming requests by IP at vmauth ](https://docs.victoriametrics.com/vmauth/#ip-filters ).
2022-10-24 15:00:25 +00:00
2023-10-13 11:07:16 +00:00
Contact us via [this page ](https://victoriametrics.com/products/enterprise/ ) if you are interested in VictoriaMetrics Enterprise.
2023-10-05 09:05:57 +00:00
2023-10-13 11:07:16 +00:00
## Running VictoriaMetrics Enterprise
VictoriaMetrics Enterprise components are available in the following forms:
2023-10-05 09:05:57 +00:00
- [Binary releases ](#binary-releases )
- [Docker images ](#docker-images )
- [Helm charts ](#helm-charts )
- [Kubernetes operator ](#kubernetes-operator )
### Binary releases
2023-10-13 11:07:16 +00:00
It is allowed to run VictoriaMetrics Enterprise components in [cases listed here ](#valid-cases-for-victoriametrics-enterprise ).
2023-10-18 18:06:23 +00:00
Binary releases of VictoriaMetrics Enterprise are available [at the releases page ](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/latest ).
2024-07-17 20:34:45 +00:00
Enterprise binaries and packages have `enterprise` suffix in their names. For example, `victoria-metrics-linux-amd64-v1.102.0-enterprise.tar.gz` .
2023-10-05 09:05:57 +00:00
2023-10-13 11:07:16 +00:00
In order to run binary release of VictoriaMetrics Enterprise component, please download the `*-enterprise.tar.gz` archive for your OS and architecture
2023-10-18 18:06:23 +00:00
from the [releases page ](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/latest ) and unpack it. Then run the unpacked binary.
2023-10-05 09:05:57 +00:00
2024-02-13 16:46:56 +00:00
All the VictoriaMetrics Enterprise components require specifying the following command-line flags:
2023-10-13 11:07:16 +00:00
* `-license` - this flag accepts VictoriaMetrics Enterprise license key, which can be obtained at [this page ](https://victoriametrics.com/products/enterprise/trial/ )
* `-licenseFile` - this flag accepts a path to file with VictoriaMetrics Enterprise license key,
which can be obtained at [this page ](https://victoriametrics.com/products/enterprise/trial/ ) . Use either `-license` or `-licenseFile` , but not both.
* `-license.forceOffline` - enables offline verification of VictoriaMetrics Enterprise license key. Contact us via [this page ](https://victoriametrics.com/products/enterprise/ )
if you need license key, which can be verified offline without the need to connect to VictoriaMetrics license server.
For example, the following command runs VictoriaMetrics Enterprise binary with the Enterprise license
obtained at [this page ](https://victoriametrics.com/products/enterprise/trial/ ):
2023-10-05 09:05:57 +00:00
2024-01-27 18:29:11 +00:00
```sh
2024-07-17 20:34:45 +00:00
wget https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v1.102.0/victoria-metrics-linux-amd64-v1.102.0-enterprise.tar.gz
tar -xzf victoria-metrics-linux-amd64-v1.102.0-enterprise.tar.gz
2023-10-13 11:07:16 +00:00
./victoria-metrics-prod -license=BASE64_ENCODED_LICENSE_KEY
2023-10-05 09:05:57 +00:00
```
2023-10-13 11:07:16 +00:00
Alternatively, VictoriaMetrics Enterprise license can be stored in the file and then referred via `-licenseFile` command-line flag:
2024-01-27 18:29:11 +00:00
```sh
2023-10-13 11:07:16 +00:00
./victoria-metrics-prod -licenseFile=/path/to/vm-license
2023-10-05 09:05:57 +00:00
```
### Docker images
2023-10-13 11:07:16 +00:00
It is allowed to run VictoriaMetrics Enterprise components in [cases listed here ](#valid-cases-for-victoriametrics-enterprise ).
Docker images for VictoriaMetrics Enterprise are available [at VictoriaMetrics DockerHub ](https://hub.docker.com/u/victoriametrics ).
2024-07-17 20:34:45 +00:00
Enterprise docker images have `enterprise` suffix in their names. For example, `victoriametrics/victoria-metrics:v1.102.0-enterprise` .
2023-10-05 09:05:57 +00:00
2023-10-13 11:07:16 +00:00
In order to run Docker image of VictoriaMetrics Enterprise component, it is required to provide the license key via command-line
flag as described [here ](#binary-releases ).
Enterprise license key can be obtained at [this page ](https://victoriametrics.com/products/enterprise/trial/ ).
For example, the following command runs VictoriaMetrics Enterprise Docker image with the specified license key:
2023-10-05 09:05:57 +00:00
2024-01-27 18:29:11 +00:00
```sh
2024-07-17 20:34:45 +00:00
docker run --name=victoria-metrics victoriametrics/victoria-metrics:v1.102.0-enterprise -license=BASE64_ENCODED_LICENSE_KEY
2023-10-05 09:05:57 +00:00
```
2023-10-13 11:07:16 +00:00
Alternatively, the license code can be stored in the file and then referred via `-licenseFile` command-line flag:
2024-01-27 18:29:11 +00:00
```sh
2024-07-17 20:34:45 +00:00
docker run --name=victoria-metrics -v /vm-license:/vm-license victoriametrics/victoria-metrics:v1.102.0-enterprise -licenseFile=/path/to/vm-license
2023-10-05 09:05:57 +00:00
```
Example docker-compose configuration:
```yaml
version: "3.5"
services:
victoriametrics:
container_name: victoriametrics
2024-07-17 20:34:45 +00:00
image: victoriametrics/victoria-metrics:v1.102.0
2023-10-05 09:05:57 +00:00
ports:
- 8428:8428
volumes:
- vmdata:/storage
- /vm-license:/vm-license
command:
2023-10-13 11:07:16 +00:00
- "-storageDataPath=/storage"
- "-licenseFile=/vm-license"
2023-10-05 09:05:57 +00:00
volumes:
vmdata: {}
```
2023-10-13 11:07:16 +00:00
The example assumes that the license file is stored at `/vm-license` on the host.
2023-10-05 09:05:57 +00:00
### Helm charts
2023-10-13 11:07:16 +00:00
It is allowed to run VictoriaMetrics Enterprise components in [cases listed here ](#valid-cases-for-victoriametrics-enterprise ).
2023-10-05 09:05:57 +00:00
2023-10-13 11:07:16 +00:00
Helm charts for VictoriaMetrics Enterprise components are available [here ](https://github.com/VictoriaMetrics/helm-charts ).
2023-10-05 09:05:57 +00:00
2023-10-13 11:07:16 +00:00
In order to run VictoriaMetrics Enterprise helm chart it is required to provide the license key via `license` value in `values.yaml` file
and adjust the image tag to the Enterprise one as described [here ](#docker-images ).
Enterprise license key can be obtained at [this page ](https://victoriametrics.com/products/enterprise/trial/ ).
For example, the following `values` file for [VictoriaMetrics single-node chart ](https://github.com/VictoriaMetrics/helm-charts/tree/master/charts/victoria-metrics-single )
2023-10-05 09:05:57 +00:00
is used to provide key in plain-text:
2023-10-13 11:07:16 +00:00
2023-10-05 09:05:57 +00:00
```yaml
server:
image:
2024-07-17 20:34:45 +00:00
tag: v1.102.0-enterprise
2023-10-05 09:05:57 +00:00
license:
2023-10-13 11:07:16 +00:00
key: {BASE64_ENCODED_LICENSE_KEY}
2023-10-05 09:05:57 +00:00
```
In order to provide key via existing secret, the following values file is used:
2023-10-13 11:07:16 +00:00
2023-10-05 09:05:57 +00:00
```yaml
server:
image:
2024-07-17 20:34:45 +00:00
tag: v1.102.0-enterprise
2023-10-05 09:05:57 +00:00
license:
secret:
name: vm-license
key: license
```
Example secret with license key:
2023-10-13 11:07:16 +00:00
2023-10-05 09:05:57 +00:00
```yaml
apiVersion: v1
kind: Secret
metadata:
name: vm-license
type: Opaque
data:
license: {BASE64_ENCODED_LICENSE_KEY}
```
Or create secret via `kubectl` :
2024-01-27 18:29:11 +00:00
```sh
2023-10-13 11:07:16 +00:00
kubectl create secret generic vm-license --from-literal=license={BASE64_ENCODED_LICENSE_KEY}
2023-10-05 09:05:57 +00:00
```
### Kubernetes operator
2023-10-13 11:07:16 +00:00
It is allowed to run VictoriaMetrics Enterprise components in [cases listed here ](#valid-cases-for-victoriametrics-enterprise ).
VictoriaMetrics Enterprise components can be deployed via [VictoriaMetrics operator ](https://docs.victoriametrics.com/operator/ ).
In order to use Enterprise components it is required to provide the license key via `license` field and adjust the image tag to the enterprise one.
Enterprise license key can be obtained at [this page ](https://victoriametrics.com/products/enterprise/trial/ ).
2023-10-05 09:05:57 +00:00
2024-04-18 01:11:03 +00:00
For example, the following custom resource for [VictoriaMetrics single-node ](https://docs.victoriametrics.com/single-server-victoriametrics/ )
2023-10-05 09:05:57 +00:00
is used to provide key in plain-text:
2023-10-13 11:07:16 +00:00
2023-10-05 09:05:57 +00:00
```yaml
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMSingle
metadata:
name: example-vmsingle
spec:
retentionPeriod: "1"
license:
2023-10-13 11:07:16 +00:00
key: {BASE64_ENCODED_LICENSE_KEY}
2023-10-05 09:05:57 +00:00
image:
2024-07-17 20:34:45 +00:00
tag: v1.102.0-enterprise
2023-10-05 09:05:57 +00:00
```
In order to provide key via existing secret, the following custom resource is used:
2023-10-13 11:07:16 +00:00
2023-10-05 09:05:57 +00:00
```yaml
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMSingle
metadata:
name: example-vmsingle
spec:
retentionPeriod: "1"
license:
keyRef:
name: vm-license
key: license
image:
2024-07-17 20:34:45 +00:00
tag: v1.102.0-enterprise
2023-10-05 09:05:57 +00:00
```
Example secret with license key:
2023-10-13 11:07:16 +00:00
```yaml
2023-10-05 09:05:57 +00:00
apiVersion: v1
kind: Secret
metadata:
name: vm-license
type: Opaque
data:
license: {BASE64_ENCODED_LICENSE_KEY}
```
Or create secret via `kubectl` :
2024-01-27 18:29:11 +00:00
```sh
2023-10-13 11:07:16 +00:00
kubectl create secret generic vm-license --from-literal=license={BASE64_ENCODED_LICENSE_KEY}
2023-10-05 09:05:57 +00:00
```
See full list of CRD specifications [here ](https://docs.victoriametrics.com/operator/api.html ).
## Monitoring license expiration
2023-10-13 11:07:16 +00:00
All the VictoriaMetrics Enterprise components expose the following metrics at the `/metrics` page:
* `vm_license_expires_at` - license expiration date in unix timestamp format
* `vm_license_expires_in_seconds` - the number of seconds left until the license expires
2023-10-05 09:05:57 +00:00
2024-04-17 23:44:12 +00:00
Example alerts for [vmalert ](https://docs.victoriametrics.com/vmalert/ ) based on these metrics:
2023-10-05 09:05:57 +00:00
```yaml
groups:
- name: vm-license
# note the `job` label and update accordingly to your setup
rules:
- alert: LicenseExpiresInLessThan30Days
expr: vm_license_expires_in_seconds < 30 * 24 * 3600
labels:
severity: warning
annotations:
summary: "{{ $labels.job }} instance {{ $labels.instance }} license expires in less than 30 days"
description: "{{ $labels.instance }} of job {{ $labels.job }} license expires in {{ $value | humanizeDuration }}.
Please make sure to update the license before it expires."
- alert: LicenseExpiresInLessThan7Days
expr: vm_license_expires_in_seconds < 7 * 24 * 3600
labels:
severity: critical
annotations:
summary: "{{ $labels.job }} instance {{ $labels.instance }} license expires in less than 7 days"
description: "{{ $labels.instance }} of job {{ $labels.job }} license expires in {{ $value | humanizeDuration }}.
Please make sure to update the license before it expires."
```