Skip to content

Latest commit

 

History

History
48 lines (42 loc) · 1.8 KB

grafana-guide.md

File metadata and controls

48 lines (42 loc) · 1.8 KB

Grafana embedding

Prerequisites

  • Cloud Pak for AIOps cluster
  • UI extension prerequisites completed:
      1. Fork...
      1. Install...
      1. Enable...
  • Grafana instance

Step-by-step

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...

2. Edit the aiopsuiextension-sample custom resource and add the following spec:

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.