This module installs Prometheus Pushgateway into the cluster. It receives metrics from the app and pushes them to Prometheus.

The module is not enabled by default in any bundles.

How to explicitly enable the module…

Note that the configOverrides parameter of the InitConfiguration resource is used when installing Deckhouse, not ModuleConfig.

Set the prometheusPushgatewayEnabled: true or prometheusPushgatewayEnabled: false in the configOverrides parameter to explicitly enable or disable the module when installing Deckhouse.

Use the prometheusPushgateway section of the configOverrides parameter to configure the module when installing Deckhouse.

Set the spec.enabled module parameter to true or false to explicitly enable or disable the module.

Example of enabling the prometheus-pushgateway module:

apiVersion: deckhouse.io/v1alpha1
kind: ModuleConfig
metadata:
  name: prometheus-pushgateway
spec:
  enabled: true

Example of disabling the prometheus-pushgateway module:

apiVersion: deckhouse.io/v1alpha1
kind: ModuleConfig
metadata:
  name: prometheus-pushgateway
spec:
  enabled: false

The module is configured using the ModuleConfig custom resource named prometheus-pushgateway (learn more about setting up Deckhouse…).

Example of the ModuleConfig/prometheus-pushgateway resource for configuring the module:

apiVersion: deckhouse.io/v1alpha1
kind: ModuleConfig
metadata:
  name: prometheus-pushgateway
spec:
  version: 1
  enabled: true
  settings: # <-- Module parameters from the "Parameters" section below.

Parameters

Schema version: 1

  • instancesarray of strings

    Required value

    This parameter contains a list of instances; a separate PushGateway will be created for each instance.

    Example:

    instances:
    - first
    - second
    
  • nodeSelectorobject

    The same as in the pods’ spec.nodeSelector parameter in Kubernetes.

    If the parameter is omitted or false, it will be determined automatically.

  • tolerationsarray of objects

    The same as in the pods’ spec.tolerations parameter in Kubernetes;

    If the parameter is omitted or false, it will be determined automatically.

    • tolerations.effectstring
    • tolerations.keystring
    • tolerations.operatorstring
    • tolerations.tolerationSecondsinteger
    • tolerations.valuestring