POSTGRES_STATEMENT_METRICS_SETTINGS Dynamic Config
Dynamic config that controls statement metrics settings for specific service.
Dictionary keys can be either the service component name (not database name!) or __default__
. The latter configuration is applied for every non-matching PostgreSQL component of the service.
The value of max_statement_metrics
controls the maximum size of LRU-cache for named statement metrics. When set to 0 (default) no metrics are being exported.
Schema:
# yaml
default: {}
description: |
Dynamic config that controls statement metrics settings for specific service.
Dictionary keys can be either the service **component name** (not database name!)
or `__default__`. The latter configuration is applied for every non-matching
PostgreSQL component of the service.
The value of `max_statement_metrics` controls the maximum size of LRU-cache
for named statement metrics. When set to 0 (default) no metrics are being
exported.
schema:
type: object
example: |
{
"postgresql-grocery_orders": {
"max_statement_metrics": 50
}
}
additionalProperties:
$ref: "#/definitions/StatementMetricsSettings"
definitions:
StatementMetricsSettings:
type: object
additionalProperties: false
properties:
max_statement_metrics:
type: integer
minimum: 0
Example:
{
"postgresql-grocery_orders": {
"max_statement_metrics": 50
}
}
For a full list of dynamic configs see Dynamic config schemas list