- Cloud Pak for AIOps cluster
- UI extension prerequisites completed:
-
- Fork...
-
- Install...
-
- Enable...
-
- Grafana instance
1. Ensure the prerequisites are completed. At this stage, you should be able to access your cluster and find the default instance of the AIOps UI Extension custom resource:
$ oc get AIOpsUIExtension -n aiops
NAME READY MESSAGE
aiopsuiextension-sample True READY FOR E-BUSINESS...
Update the config in config/routes.json
to include the following new routes and run npm run examples -- -n <AIOps namespace>
to update the AIOpsUIExtension on the cluster. If you are not intending to use the other toolkit samples, you can simply remove them from the config/routes.json
file at this stage.
{
"menuRoutes": [
{
"categoryTitle": "Grafana dashboards",
"routes": [
"/embedded-grafana
],
"type": "category"
}
],
"routes": [
{
"path": "/embedded-grafana",
"title": "Grafana",
"url": "https://your-grafana-url.com:3000"
}
]
}
Notes:
- Adjust the url/port to be applicable to your instance.
- This specification of menu routes creates a new folder in the nav named 'Grafana dashboards', that will then have the 'Grafana' page in it.