OpenSearch reference ΒΆ

Configuration options ΒΆ

The spec.openSearch configuration allows you to reference a single OpenSearch instance with a desired access mode.

yaml

For details, see the manifest reference for your workload type:

Access levels ΒΆ

The access levels are as follows:

Access levelDescription
readAllows only searching and retrieving documents. Allows access to _search and _mget APIs
writeAllows updating, adding, and deleting documents. Allows access to _bulk, _mapping, _update_by_query, and _delete_by_query APIs
readwriteGrants full access to documents. Allows access to _search, _mget, _bulk, _mapping, _update_by_query, and _delete_by_query APIs
adminAllows unlimited access to indices

See the Aiven documentation for more details.

Environment variables ΒΆ

When using an OpenSearch from your workload, these environment variables are available at runtime:

KeyValue
OPEN_SEARCH_URIThe URI for the OpenSearch instance.
OPEN_SEARCH_HOSTThe host for the OpenSearch instance.
OPEN_SEARCH_PORTThe port for the OpenSearch instance.
OPEN_SEARCH_USERNAMEThe username to use when connecting.
OPEN_SEARCH_PASSWORDThe password to use when connecting.

Metrics ΒΆ

If your OpenSearch instance is managed by Nais Console or you've created a ServiceIntegration manually, you will find essential instance metrics in Nais Console in the "Insights" tab.

Metrics are not available for the SINGLE_NODE tier and GB_2 memory configuration (equivalent to the hobbyist service plan in Aiven).

Additional metrics are available in Prometheus. For example, CPU usage percentage can be queried with:

promql

See the Aiven documentation for a full list of available OpenSearch metrics.