canonical / opensearch-operator

OpenSearch operator
Apache License 2.0
9 stars 5 forks source link

[DPE-4553][DPE-4208][DPE-3970] Extend large deployments to test_plugins.py && Fix dashboards #328

Closed phvalguima closed 1 week ago

phvalguima commented 2 weeks ago

Renames our dashboard to "Charmed OpenSearch". This PR addresses the following needs in our COS integration for large deployments: 1) Fixes data node integration with COS: COSAgentProvider was not tracking peer-cluster-* events, which means it was not receiving changes done to the COSUser by the main orchestrator 2) Add integration tests to COS: large deployments integration tests for COS were missing, this PR makes test_plugins more flexible, so it can run both small and large deployments 3) Manage user passwords: large deployments will now answer to set-password action and MAIN_ORCHESTRATOR propagates the new password value down to the other apps 4) Adds Role to Dashboard: adds "Roles" as a dropdown option to Grafana dashboard, allowing to filter each cluster also by OpenSearch "construct" node role.

Empty Dashboard Fix

Some dashboards are being set with $interval, which defaults to 1m and does not allow to run the actual calculation. This PR fixes it by using __rate_interval instead, which is a fixed period of X sample times for any rate() calculations.

Before

Screenshot from 2024-06-13 20-42-30

After

Screenshot from 2024-06-13 20-42-42

This is a graph for rate(), which means we want to compare sample deltas over a window of time. The later graph makes more sense in this case.