# -- Cluster label to use for dashboards and rules
clusterLabel:cluster
# -- Global license configuration
license:
key:""
keyRef:{}
# name: secret-license
# key: license
cluster:
# -- K8s cluster domain suffix, uses for building storage pods' FQDN. Details are [here](https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/)
dnsDomain:cluster.local.
# -- Override chart name
nameOverride:""
# -- Resource full name override
fullnameOverride:""
# -- Tenant to use for Grafana datasources and remote write
tenant:"0"
# -- If this chart is used in "Argocd" with "releaseName" field then
# VMServiceScrapes couldn't select the proper services.
# For correct working need set value 'argocdReleaseOverride=$ARGOCD_APP_NAME'
argocdReleaseOverride:""
# -- VictoriaMetrics Operator dependency chart configuration. More values can be found [here](https://docs.victoriametrics.com/helm/victoriametrics-operator#parameters). Also checkout [here](https://docs.victoriametrics.com/operator/vars) possible ENV variables to configure operator behaviour
victoria-metrics-operator:
enabled:true
crds:
plain:true
cleanup:
enabled:true
image:
repository:bitnami/kubectl
pullPolicy:IfNotPresent
serviceMonitor:
enabled:true
operator:
# -- By default, operator converts prometheus-operator objects.
disable_prometheus_converter:false
# group pinguin added the admissionWebhooks value according to https://docs.victoriametrics.com/helm/victoriametrics-k8s-stack/#argocd-issues
admissionWebhooks:
certManager:
enabled:true
defaultDashboards:
# -- Enable custom dashboards installation
enabled:true
defaultTimezone:utc
labels:{}
annotations:{}
grafanaOperator:
# -- Create dashboards as CRDs (requires grafana-operator to be installed)
enabled:false
spec:
instanceSelector:
matchLabels:
dashboards:grafana
allowCrossNamespaceImport:false
# -- Create dashboards as ConfigMap despite dependency it requires is not installed
dashboards:
victoriametrics-vmalert:
enabled:true
victoriametrics-operator:
enabled:true
# -- In ArgoCD using client-side apply this dashboard reaches annotations size limit and causes k8s issues without server side apply
# See [this issue](https://github.com/VictoriaMetrics/helm-charts/tree/master/charts/victoria-metrics-k8s-stack#metadataannotations-too-long-must-have-at-most-262144-bytes-on-dashboards)
node-exporter-full:
enabled:true
# -- Create default rules for monitoring the cluster
defaultRules:
# -- Labels, which are used for grouping results of the queries. Note that these labels are joined with `.Values.global.clusterLabel`
additionalGroupByLabels:[]
create:true
# -- Common properties for VMRule groups
group:
spec:
# -- Optional HTTP URL parameters added to each rule request
params:{}
# -- Common properties for all VMRules
rule:
spec:
# -- Additional labels for all VMRules
labels:{}
# -- Additional annotations for all VMRules
annotations:{}
# -- Common properties for VMRules alerts
alerting:
spec:
# -- Additional labels for VMRule alerts
labels:{}
# -- Additional annotations for VMRule alerts
annotations:{}
# -- Common properties for VMRules recording rules
recording:
spec:
# -- Additional labels for VMRule recording rules
labels:{}
# -- Additional annotations for VMRule recording rules
# -- Provide custom recording or alerting rules to be deployed into the cluster.
additionalVictoriaMetricsMap:
# rule-name:
# groups:
# - name: my_group
# rules:
# - record: my_record
# expr: 100 * my_record
external:
grafana:
# -- External Grafana host
host:""
# -- External Grafana datasource name
datasource:VictoriaMetrics
# -- External VM read and write URLs
vm:
read:
url:""
# bearerTokenSecret:
# name: dbaas-read-access-token
# key: bearerToken
write:
url:""
# bearerTokenSecret:
# name: dbaas-read-access-token
# key: bearerToken
# Configures vmsingle params
vmsingle:
# -- VMSingle annotations
annotations:{}
# -- Create VMSingle CR
enabled:true
# -- Full spec for VMSingle CRD. Allowed values describe [here](https://docs.victoriametrics.com/operator/api#vmsinglespec)
spec:
port:"8429"
# -- Data retention period. Possible units character: h(ours), d(ays), w(eeks), y(ears), if no unit character specified - month. The minimum retention period is 24h. See these [docs](https://docs.victoriametrics.com/single-server-victoriametrics/#retention)
retentionPeriod:"1"
replicaCount:1
extraArgs:{}
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage:20Gi
ingress:
# -- Enable deployment of ingress for server component
enabled:false
# -- Ingress annotations
annotations:
{}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# -- Ingress extra labels
labels:{}
# -- Ingress default path
path:""
# -- Ingress path type
pathType:Prefix
# -- Ingress controller class name
ingressClassName:""
# -- Array of host objects
hosts:[]
# - vmsingle.domain.com
# -- Extra paths to prepend to every host configuration. This is useful when working with annotation based services.
extraPaths:[]
# - path: /*
# pathType: Prefix
# backend:
# service:
# name: ssl-redirect
# port:
# name: service
# -- Array of TLS objects
tls:[]
# - secretName: vmsingle-ingress-tls
# hosts:
# - vmsingle.domain.com
vmcluster:
# -- Create VMCluster CR
enabled:false
# -- VMCluster annotations
annotations:{}
# -- Full spec for VMCluster CRD. Allowed values described [here](https://docs.victoriametrics.com/operator/api#vmclusterspec)
spec:
# -- Data retention period. Possible units character: h(ours), d(ays), w(eeks), y(ears), if no unit character specified - month. The minimum retention period is 24h. See these [docs](https://docs.victoriametrics.com/single-server-victoriametrics/#retention)
retentionPeriod:"1"
replicationFactor:2
vmstorage:
replicaCount:2
storageDataPath:/vm-data
storage:
volumeClaimTemplate:
spec:
resources:
requests:
storage:10Gi
resources:
{}
# limits:
# cpu: "1"
# memory: 1500Mi
vmselect:
# -- Set this value to false to disable VMSelect
enabled:true
port:"8481"
replicaCount:2
cacheMountPath:/select-cache
extraArgs:{}
storage:
volumeClaimTemplate:
spec:
resources:
requests:
storage:2Gi
resources:
{}
# limits:
# cpu: "1"
# memory: "1000Mi"
# requests:
# cpu: "0.5"
# memory: "500Mi"
vminsert:
# -- Set this value to false to disable VMInsert
enabled:true
port:"8480"
replicaCount:2
extraArgs:{}
resources:
{}
# limits:
# cpu: "1"
# memory: 1000Mi
# requests:
# cpu: "0.5"
# memory: "500Mi"
ingress:
storage:
# -- Enable deployment of ingress for server component
enabled:false
# -- Ingress annotations
annotations:{}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# -- Ingress extra labels
labels:{}
# -- Ingress controller class name
ingressClassName:""
# -- Ingress path type
pathType:Prefix
# -- Ingress default path
path:""
# -- Array of host objects
hosts:[]
# - vmstorage.domain.com
# -- Extra paths to prepend to every host configuration. This is useful when working with annotation based services.
extraPaths:[]
# - path: /*
# pathType: Prefix
# backend:
# service:
# name: ssl-redirect
# port:
# name: service
# -- Array of TLS objects
tls:[]
# - secretName: vmstorage-ingress-tls
# hosts:
# - vmstorage.domain.com
select:
# -- Enable deployment of ingress for server component
# -- Flag, that allows to disable default VMAuth unauthorized user access config
disabled:false
discover_backend_ips:true
url_map:
- src_paths:
- '{{ .vm.read.path }}/.*'
url_prefix:
- '{{ urlJoin (omit .vm.read "path") }}/'
- src_paths:
- '{{ .vm.write.path }}/.*'
url_prefix:
- '{{ urlJoin (omit .vm.write "path") }}/'
vmagent:
# -- Create VMAgent CR
enabled:true
# -- VMAgent annotations
annotations:{}
# -- Remote write configuration of VMAgent, allowed parameters defined in a [spec](https://docs.victoriametrics.com/operator/api#vmagentremotewritespec)
additionalRemoteWrites:
[]
#- url: http://some-remote-write/api/v1/write
# -- (object) Full spec for VMAgent CRD. Allowed values described [here](https://docs.victoriametrics.com/operator/api#vmagentspec)
spec:
port:"8429"
selectAllByDefault:true
scrapeInterval:20s
externalLabels:{}
# For multi-cluster setups it is useful to use "cluster" label to identify the metrics source.
# For example:
# cluster: cluster-name
extraArgs:
promscrape.streamParse:"true"
# Do not store original labels in vmagent's memory by default. This reduces the amount of memory used by vmagent
# but makes vmagent debugging UI less informative. See: https://docs.victoriametrics.com/vmagent/#relabel-debug
promscrape.dropOriginalLabels:"true"
# -- (object) VMAgent ingress configuration
ingress:
enabled:false
# For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
# See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
# ingressClassName: nginx
# Values can be templated
annotations:
{}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
labels:{}
path:""
pathType:Prefix
hosts:
- vmagent.domain.com
extraPaths:[]
# - path: /*
# pathType: Prefix
# backend:
# service:
# name: ssl-redirect
# port:
# name: service
tls:[]
# - secretName: vmagent-ingress-tls
# hosts:
# - vmagent.domain.com
defaultDatasources:
grafanaOperator:
# -- Create datasources as CRDs (requires grafana-operator to be installed)
enabled:false
annotations:{}
spec:
instanceSelector:
matchLabels:
dashboards:grafana
allowCrossNamespaceImport:false
victoriametrics:
# -- Create per replica prometheus compatible datasource
perReplica:false
# -- List of prometheus compatible datasource configurations.
# VM `url` will be added to each of them in templates.
datasources:
- name:VictoriaMetrics
type:prometheus
access:proxy
isDefault:true
- name:VictoriaMetrics (DS)
isDefault:false
access:proxy
type:victoriametrics-metrics-datasource
version:"0.15.1"
# -- List of alertmanager datasources.
# Alertmanager generated `url` will be added to each datasource in template if alertmanager is enabled
alertmanager:
# -- Create per replica alertmanager compatible datasource
perReplica:false
datasources:
- name:Alertmanager
access:proxy
jsonData:
implementation:prometheus
# -- Configure additional grafana datasources (passed through tpl).
# Check [here](http://docs.grafana.org/administration/provisioning/#datasources) for details