Create an OpenSearch instanceΒΆ
Explicitly creating an OpenSearch instance is done by adding a OpenSearch resource to your namespace with detailed configuration in a GCP cluster. In your Application
or Naisjob
specifications, you specify an instance and access.
The minimal OpenSearch resource looks like this:
opensearch.yaml
The actual name of the OpenSearch instance will be opensearch-<TEAM NAME>-<INSTANCE NAME>
(where TEAM NAME
is the same as the namespace your application resides in). The resource needs to have this full name in order to be accepted.
As we use Aivens operator, the OpenSearch resource is documented in detail in the Aiven documentation. Check the reference for any other fields that might be of interest.
ServiceIntegrationΒΆ
A ServiceIntegration is used to integrate the OpenSearch instance with Prometheus. It is pretty straight forward, with little to no configuration needed.
Simple 5 steps procedure:
- Copy the below yaml into a file (it can be the same file as your OpenSearch instance)
- Replace
<ENV>
with the environment you are running in (ex.dev
,prod
) (in fieldproject
) - Replace
<MYTEAM>
with your team name (inlabels
,namespace
andsourceServiceName
) - Replace
<INSTANCE>
with the name of your OpenSearch instance (inname
andsourceServiceName
) - Replace
<ENDPONT-ID>
with the endpoint ID from the table below (indestinationEndpointId
) - Deploy the resource using the same pipeline as you use for your OpenSearch instance
opensearch.yaml
Prometheus Endpoint IDsΒΆ
Environment | Endpoint ID |
---|---|
nav-dev | f20f5b48-18f4-4e2a-8e5f-4ab3edb19733 |
nav-prod | 76685598-1048-4f56-b34a-9769ef747a92 |