Deploying OpenSearch monitoring for Rucio
This document will describe the process of setting up OpenSearch monitoring for Rucio. It will include all the steps from deploying the OpenSearch cluster, setting up the indexes, directing Hermes to forward messages to the index, and creating the dashboards for the data.
Instructions
Deploy OpenSearch
Deploying OpenSearch is going to be simplified by the new Rucio Helm chart, until then this link takes you to a GitLab Repo that has the instructions for deploying OpenSearchDownload the Repo
Configure the values for your own needs - default settings in the values are for 3 master nodes with 3Gi Storage, and 3 Worker nodes with 30Gi Storage
Run the following in a location that has helm and access to your kubernetes cluster and it should deploy OpenSearch to your cluster in the namespace elastic-system
make opensearch-deployment
Get access to OpenSearch
Ensure you have the correct credentials by running the following command in one terminal
kubectl port-forward -n opensearch-system svc/opensearch-cluster-worker 9200
In another terminal run, the default username and password is admin:
curl -u "<opensearch username>:<OpenSearch password>" -k "https://localhost:9200"
Should all be correct you will get a response that shows:
Create index in OpenSearch
Within the Repo from step 1 at overlays/Elastic/OpenSearch/rucio-events contains the index, this needs to be applied to OpenSearch in the location you want the index to be createdDirect Rucio Hermes to Index
OpenSearch is now setup to receive messages from Rucio. It now needs to have Rucio Hermes daemon pointed at it. For this editing of the Rucio values will allow for such thing.You will need at least this in the config section of the daemon values
You will also need to create a secret in the Rucio namespace to allow the injection of the OpenSearch user secret for Hermes to be able to deposit the messages
Add the secret to Hermes, an example is below
Connect or get connected OpenSearch to Grafana
Within Grafana now that Rucio is now communicating its logs to OpenSearch it now needs to be able to be visualised using GrafanaIn your clusters Grafana deployment go to configuration / datasources
Add data source
Select OpenSearch
Put in the following details in the fields:
Create the dashboard
Once the data source is created and verified you can create a dashboard using it
Navigate to Dashboards / Import
Paste in the contents of overlays/Elastic/OpenSearch/Dashboards/Rucio External into the import via panel json
Highlight important information in a panel like this one. To edit this panel's color or style, select one of the options in the menu.