Skip to content

Version Exporter

version-exporter

install parameters

Field Description Scheme
install Allows to enable or disable deploy version-exporter. bool
name A name of the microservice to deploy with. This name is used as the name of the microservice deployment and in labels. string
containerPort Only changes container port. Application port can be changed with extraArgs (--web.listen-address=:9115). integer
image A Docker image to deploy the version-exporter. string
imagePullPolicy Image pull policy to use for version-exporter deployment string
replicas Number of created pods. *int32
serviceAccount.create Allow to disable create ServiceAccount during deploy. bool
serviceAccount.annotations Annotations to add to the ServiceAccount during deploy. map[string]string
serviceAccount.name Provide a name of ServiceAccount to use. bool
resources The resources that describe computed resource requests and limits for single pods. v1.ResourceRequirements
securityContext SecurityContext holds pod-level security attributes. Default for Kubernetes, securityContext:{ runAsUser: 2000, fsGroup: 2000 }. *v1.PodSecurityContext
extraArgs Additional arguments for version-exporter container. arguments
extraVarsSecret Allows set extra system environment variables for Version-exporter into the Secret. list[string]
serviceMonitor.enabled If true, a ServiceMonitor CRD is created for version-exporter. boolean
serviceMonitor.interval Default interval. string
exporterConfig Config for exporters. postgres collector parameters http requests collector parameters
tolerations Tolerations allow the pods to schedule onto nodes with matching taints. []v1.Toleration
nodeSelector Defines which nodes the pods are scheduled on. Specified just as map[string]string. For example: \"type: compute\" map[string]string
affinity It specifies the pod's scheduling constraints. For more information, refer to https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#affinity-v1-core *v1.Affinity
annotations Map of string keys and values stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. Specified just as map[string]string. For example: "annotations-key: annotation-value" map[string]string
labels Map of string keys and values that can be used to organize and categorize (scope and select) objects. Specified just as map[string]string. For example: "label-key: label-value" map[string]string
priorityClassName PriorityClassName assigned to the Pods to prevent them from evicting. string

arguments

Name Description Default value
--log.level Logging verbosity. Possible values: error, warn, info, debug info
--web.listen-address Address on which to expose metrics and web interface. :9100
--web.telemetry-path Path under which to expose metrics. /metrics
--web.max-requests Maximum number of parallel scrape requests. 40 (0 means no limit is applied)
--config.file Path to a exporter configuration file. /config/exporterConfig.yaml
--config.watch Directory for watching change config map events. /config ("" means watching is turned off)

postgres collector parameters

Field Description Scheme
host Postgres host name or ip to connect to. A part of postgres url. Must be unique. string
port Postgres port number to connect to at the server host. string
credentials.username.key Credentials for basic authentication. Secret key string
credentials.username.name Credentials for basic authentication. Secret name string
credentials.password.key Credentials for basic authentication. Secret key string
credentials.password.name Credentials for basic authentication. Secret name string
db The database name. string
timeout Max connection life time is the duration since creation after which a connection will be automatically closed. string
requests.sql Postgres sql request. Read-Only operations are exclusively supported. To avoid prometheus client errors about metric value duplicate use "select distinct" to selects only the distinct values. string
requests.metricName Name of new Prometheus metric. string
requests.description Description of new Prometheus metric. Limit 100 symbols. string
requests.metrics List of the field returned by sql request that is to be used in the metric. The "metrics" list fields will be included into the prometheus metric only. list[Metric]
requests.metrics.fieldName Name of the field returned by sql request that is to be used in the metric. It is to be unique. string
requests.metrics.label Name of new Prometheus metric label. It is to be unique if defined. string
requests.metrics.valueRegexp Regular expression applied to results of sql request string

If some requests.sql query is incorrect(e.g. request to non-existent table) the appropriate error will be printed and no queries will be executed.

If requests.metrics.label is not defined, use as labels:

  1. Named group of regexp
  2. Column name of sql request results

Example:

```yaml postgres_collector: connections: