Skip to content

[performance] section

Metrics service configuration

default_hist

Default value[0.001, 0.005, 0.01, 0.05, 0.5, 1.0, 5.0, 10.0]
YAML Pathmetrics.default_hist
Key-Value Pathmetrics/default_hist
EnvironmentNOC_METRICS_DEFAULT_HIST

enable_mongo_hist

Default valueFalse
YAML Pathmetrics.enable_mongo_hist
Key-Value Pathmetrics/enable_mongo_hist
EnvironmentNOC_METRICS_ENABLE_MONGO_HIST

mongo_hist

Default value[0.001, 0.005, 0.01, 0.05, 0.5, 1.0, 5.0, 10.0]
YAML Pathmetrics.mongo_hist
Key-Value Pathmetrics/mongo_hist
EnvironmentNOC_METRICS_MONGO_HIST

enable_postgres_hist

Default valueFalse
YAML Pathmetrics.enable_postgres_hist
Key-Value Pathmetrics/enable_postgres_hist
EnvironmentNOC_METRICS_ENABLE_POSTGRES_HIST

postgres_hist

Default value[0.001, 0.005, 0.01, 0.05, 0.5, 1.0, 5.0, 10.0]
YAML Pathmetrics.postgres_hist
Key-Value Pathmetrics/postgres_hist
EnvironmentNOC_METRICS_POSTGRES_HIST

default_quantiles

Default value[0.5, 0.9, 0.95]
YAML Pathmetrics.default_quantiles
Key-Value Pathmetrics/default_quantiles
EnvironmentNOC_METRICS_DEFAULT_QUANTILES

default_quantiles_epsilon

Acceptable ranking error for approximate quantiles calculation.

Consider we have 1000 measurements and calculating 2-nd quartile (50% or 0.5). Exact quantile calculation must return 1000 * 0.5 = 500 item of ordered list of measurement but we need to keep all 1000 measurements in memory.

Approximate quantiles calculation guaranted to return an item between 1000 * (0,5 - Epsilon) and 1000 * (0.5 + Epsilon). So for default value of 0.01 value between490and510` position will be returned, greatly relaxing memory requirements.

Lesser values means greater precision and greater memory and cpu requirements, while greater values means lesser precision but lesser memory and cpu penalty.

Default value0.01
YAML Pathmetrics.default_quantiles_epsilon
Key-Value Pathmetrics/default_quantiles_epsilon
EnvironmentNOC_METRICS_DEFAULT_QUANTILES_EPSILON

default_quantiles_window

Quantiles window size in seconds. NOC maintains 2 quantile windows - temporary and active one, purging active and swapping windows every default_quantiles_window seconds.

Default value60
YAML Pathmetrics.default_quantiles_window
Key-Value Pathmetrics/default_quantiles_window
EnvironmentNOC_METRICS_DEFAULT_QUANTILES_WINDOW

default_quantiles_buffer

Default value100
YAML Pathmetrics.default_quantiles_buffer
Key-Value Pathmetrics/default_quantiles_buffer
EnvironmentNOC_METRICS_DEFAULT_QUANTILES_BUFFER

enable_mongo_quantiles

Enable quantiles collection for mongo transactions

Default valueFalse
YAML Pathmetrics.enable_mongo_quantiles
Key-Value Pathmetrics/enable_mongo_quantiles
EnvironmentNOC_METRICS_ENABLE_MONGO_QUANTILES

enable_postgres_quantiles

Enable quantiles collection for postgresql transactions

Default valueFalse
YAML Pathmetrics.enable_postgres_quantiles
Key-Value Pathmetrics/enable_postgres_quantiles
EnvironmentNOC_METRICS_ENABLE_POSTGRES_QUANTILES