Skip to content

2.27.0.0-b604

@Deepti-yb Deepti-yb tagged this 25 Sep 05:48
Summary:
Add soft memory limit introduced in the metrics export API: https://phorge.dev.yugabyte.com/D46656 to the query log export API

The most basic configuration API payload looks like the following:
`http://localhost:9000/api/v2/customers/<>/universes/<>/query-log-config`

```
{
  "install_otel_collector": true,
  "query_log_config": {
    "export_active": true,
    "ysql_query_config": {
      "enabled": true,
      "log_statement": "NONE"
    },
    "universe_logs_exporter_config": [
      {
        "exporter_uuid": "a1cf11bd-7443-4e96-9b28-94e820475eef",
        "memory_limit_mib": 1024,
        "memory_limit_check_interval_seconds": 5
      }
    ]
  }
}
```

Test Plan:
Manually tested addition of memory limits to query logs:
```
 memory_limiter/query_logs_a1cf11bd-7443-4e96-9b28-94e820475eef: !!com.yugabyte.yw.common.audit.otel.OtelCollectorConfigFormat$MemoryLimiterProcessor {
    check_interval: 5s, limit_mib: 512}
```

Reviewers: skurapati

Reviewed By: skurapati

Subscribers: svc_phabricator

Differential Revision: https://phorge.dev.yugabyte.com/D46872
Assets 2
Loading