Training with sample data
To learn about cloud native analytics, you can install a sample data set. Learn how to install and load sample data, train the system, and see the results.
Before you begin
- The ea-events-tooling container is installed
by the operator. It is not started as a pod, and contains scripts to install data on the system,
which can be run with the
kubectl run
command. - Find the values of image and
image_tag for the ea-events-tooling container, from the
output of the following
command:
Where <release_name> is the custom resource release name of your cloud deployment. For example, in the following output, image iskubectl get noi <release_name> -o yaml | grep ea-events-tooling
ea-events-tooling
, and image_tag is2.0.14-20200120143838GMT
.kubectl get noi <release_name> -o yaml | grep ea-events-tooling --env=CONTAINER_IMAGE=image-registry.openshift-image-registry.svc:5000/default/ea-events-tooling:2.0.14-20200120143838GMT \ --image=image-registry.openshift-image-registry.svc:5000/default/ea-events-tooling:2.0.14-20200120143838GMT \
Hybrid deployment: For a hybrid deployment, run the following command:
Where <release_name> is the custom resource release name of your hybrid deployment.kubectl get noihybrid <release_name> -o yaml | grep ea-events-tooling
IBM Cloud Pak for Watson AIOps deployment: For an online or offline deployment (airgap) of Event Manager with IBM Cloud Pak for Watson AIOps, find the values of image and image_tag from the noi-operator CSV file. Run the following command:
Where <noi-operator> is the noi-operator CSV file name.oc get csv <noi-operator> -o yaml | grep olm.relatedImage.NOI_ea-events-tooling: | awk -F ': ' '{print $2}'
- If you created your own docker registry secret, as described in Preparing your cluster, then patch your
service
account.
Where noi-registry-secret is the name of the secret for accessing the Docker repository.kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "noi-registry-secret"}]}'
Note: As an alternative to patching the default service account with image pull secrets, you can add the following option to each kubectl command that you issue:If you want to show the metric anomaly detection capability with the sample data, you need to generate an API Key and load metric data with the--overrides='{ "apiVersion": "v1", "spec": { "imagePullSecrets": [{"name": "evtmanager-registry-secret"}] } }'
loadSampleData
commands. Click Working with cURL to learn how to generate the API key and allow access to the metrics API.
About this task
Note: The ea-events-tooling container does not run with a custom Security
Context Constraint (SCC).
You can use scripts in the
ea-events-tooling container to install sample data on the system. Run the
loadSampleData.sh script to load data to the ingestion service, train it,
create a scope-based policy and load the data into IBM®
Netcool Operations Insight. This script
loads prebuilt data into the ingestion service and ObjectServer and trains the system for
seasonality and related events. To access the secrets, which control access to the ObjectServer, Web GUI and policy administration, the loadSampleData.sh script needs to run as a job.
Note: Loading pre-built data, training the system and loading data into the ObjectServer must be
carried out only once. Thus, for the following example procedure, step 1.b must be invoked only
once.