Applies to SUSE AI 1.0
5 Monitoring OpenSearch #
OpenSearch is monitored using the OpenTelemetry Collector’s elasticsearch receiver.
This configuration allows you to collect metrics such as disk usage, cluster health, and node performance.
5.1 Configuring the OpenTelemetry Collector #
To enable OpenSearch monitoring, update the otel-values.yaml file with the following configurations.
Update the collector image to use the
contribversion, which includes theelasticsearchreceiver.image: registry: docker.io repository: otel/opentelemetry-collector-contrib tag: 0.140.0 pullPolicy: AlwaysAdd the
elasticsearchreceiver to theconfig.receiverssection.config: receivers: elasticsearch: endpoint: "http://opensearch-cluster-master-headless.<OPENSEARCH_NAMESPACE>.svc.cluster.local:9200" 1 # If you have basic auth enabled: username: "<USERNAME>" password: "<PASSWORD>" # If using self-signed certs or internal CAs: tls: insecure_skip_verify: true collection_interval: 10s # Optional: Enable detailed node metrics metrics: elasticsearch.node.fs.disk.total: enabled: true elasticsearch.node.fs.disk.available: enabled: trueReplace
<OPENSEARCH_NAMESPACE>with the namespace where OpenSearch is installed.Add
elasticsearchto thereceiverslist in theservice.pipelines.metricssection.service: pipelines: metrics: receivers: [otlp, spanmetrics, prometheus, elasticsearch] processors: [memory_limiter, resource, batch] exporters: [debug, otlp]
5.2 Applying the configuration #
After updating the otel-values.yaml file, apply the changes by running the Helm upgrade command.
> helm upgrade --install opentelemetry-collector \
oci://dp.apps.rancher.io/charts/opentelemetry-collector \
-n observability -f otel-values.yaml