envvars

package
v2.8.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package envvars contains environment variables parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseEnvVars

func ParseEnvVars(envs []string) (envSettings *models.ChangeSettingsParams, errs []error, warns []string)

ParseEnvVars parses given environment variables.

Returns valid setting and two lists with errors and warnings. This function is mainly used in pmm-managed-init to early validate passed environment variables, and provide user warnings about unknown variables. In case of error, the docker run terminates. Short description of environment variables:

  • PATH, HOSTNAME, TERM, HOME are default environment variables that will be ignored;
  • DISABLE_UPDATES is a boolean flag to enable or disable pmm-server update;
  • DISABLE_TELEMETRY is a boolean flag to enable or disable pmm telemetry (and disable STT if telemetry is disabled);
  • METRICS_RESOLUTION, METRICS_RESOLUTION, METRICS_RESOLUTION_HR,

METRICS_RESOLUTION_LR are durations of metrics resolution;

  • DATA_RETENTION is the duration of how long keep time-series data in ClickHouse;
  • the environment variables prefixed with GF_ passed as related to Grafana.

Types

type InvalidDurationError

type InvalidDurationError string

InvalidDurationError invalid duration error.

func (InvalidDurationError) Error

func (e InvalidDurationError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL