Skip to content

Conversation

labrenbe
Copy link
Member

@labrenbe labrenbe commented Aug 7, 2025

Description

Add the opensearch-prometheus-exporter plugin to the Opensearch image.

Definition of Done Checklist

Note

Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant.

Please make sure all these things are done and tick the boxes

  • Changes are OpenShift compatible
  • All added packages (via microdnf or otherwise) have a comment on why they are added
  • Things not downloaded from Red Hat repositories should be mirrored in the Stackable repository and downloaded from there
  • All packages should have (if available) signatures/hashes verified
  • Add an entry to the CHANGELOG.md file
  • Integration tests ran successfully
TIP: Running integration tests with a new product image

The image can be built and uploaded to the kind cluster with the following commands:

bake --product <product> --image-version <stackable-image-version>
kind load docker-image <image-tagged-with-the-major-version> --name=<name-of-your-test-cluster>

See the output of bake to retrieve the image tag for <image-tagged-with-the-major-version>.

@labrenbe labrenbe self-assigned this Aug 7, 2025
@labrenbe labrenbe marked this pull request as ready for review August 8, 2025 14:33
@labrenbe labrenbe requested a review from siegfriedweber August 8, 2025 14:33
@labrenbe labrenbe changed the title feat(opensearch): Add elasticsearch exporter to opensearch image feat(opensearch): Add prometheus-exporter plugin to opensearch image Aug 12, 2025
@labrenbe labrenbe linked an issue Aug 12, 2025 that may be closed by this pull request
4 tasks
@sbernauer sbernauer requested a review from a team August 18, 2025 07:12
@razvan razvan self-requested a review August 20, 2025 13:02
Copy link
Member

@razvan razvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Tested by:

  • building the image locally
  • importing it in local minikube cluster
  • run the operator smoke test and from a pod shell:
stackable@opensearch-nodes-cluster-manager-0 /stackable/opensearch-3.1.0-stackable0.0.0-dev $ curl -k -u admin  https://opensearch:9200/_prometheus/metrics | head
Enter host password for user 'admin':
# HELP opensearch_indices_fielddata_memory_size_bytes Memory usage of field date cache
# TYPE opensearch_indices_fielddata_memory_size_bytes gauge
opensearch_indices_fielddata_memory_size_bytes{cluster="opensearch",node="opensearch-nodes-cluster-manager-0",nodeid="FdwQ9er3TRidMwIkBfa-6Q",} 0.0
# HELP opensearch_index_merges_current_number Current rate of merges
# TYPE opensearch_index_merges_current_number gauge
opensearch_index_merges_current_number{cluster="opensearch",index="my-dsl-index",context="primaries",} 0.0
opensearch_index_merges_current_number{cluster="opensearch",index=".opendistro_security",context="primaries",} 0.0
opensearch_index_merges_current_number{cluster="opensearch",index="my-dsl-index",context="total",} 0.0
opensearch_index_merges_current_number{cluster="opensearch",index=".opendistro_security",context="total",} 0.0
# HELP opensearch_cluster_inflight_fetch_number Number of in flight fetches

@labrenbe labrenbe removed the request for review from siegfriedweber August 20, 2025 14:53
@labrenbe labrenbe added this pull request to the merge queue Aug 20, 2025
Merged via the queue into main with commit 18eece9 Aug 20, 2025
3 checks passed
@labrenbe labrenbe deleted the feat/opensearch-prometheus-exporter branch August 20, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Prometheus support
2 participants