Provisioning a simple example dashboard to your Grafana instance monitoring a CNSA cluster and running in a k8s OCP environment - IBM/ibm-spectrum-scale-bridge-for-grafana GitHub Wiki
Any dashboard from the example dashboards collection can easily be imported in a Grafana instance running in k8s/OCP environment.
Make sure you have installed a Grafana instance from the Custom Resource type Grafana available by the RedHat community powered Grafana operator in your k8s/OCP environment. Otherwise follow this instructions before you proceed with the next step.
To import simple dashboard from the example dashboards collection, issue:
Commands:
NAMESPACE=grafana-for-cnsa
oc apply -f https://raw.githubusercontent.com/IBM/ibm-spectrum-scale-bridge-for-grafana/master/examples/openshift_deployment_scripts/examples_for_grafana-operator_v5/provision_dashboard/cnsa-cluster-simple-dashboard-v5.yaml
Verify the cnsa-cluster-simple-dashboard instance from the type GrafanaDashboards has been deployed:
Example output:
[[email protected] ~]# oc get GrafanaDashboard
NAME NO MATCHING INSTANCES LAST RESYNC AGE
cnsa-cluster-simple-dashboard 26s 26s
[[email protected] ~]# oc get GrafanaDashboard cnsa-cluster-simple-dashboard -o json | jq '.status'
{
"contentCache": "H4sIAAAAAAAA/+xa60/cuBb/zl9hWdVVKw1oAh1o+QZUraq+uBda6WqFRp7kJLHGsVPbGWZa8b+v7LzsxAN0291FKl/ayTkn9nn8zsMx33cQwvM55WWlFT5Gf1xNaoqErxWVYGk7CCH03f6LENabEvAxwpkkKeEET1oGTYJkTgor/2bIWIFUVHDDe7G3vxdhy7iZhLcrCQcW2KzMg1uVOXoqWPIsuN3tOyVEEyUqGcNwO1EC1ypZjHf8VAK/vHh1Gtwu2pvuTZs9dxCqXUw4F5poKrjxca0EZlTpzuO9agjhRUWZfmuWiyY91VH1GOHdXdQ4Ge3uYkcMOFkwI6JlBQ49p0mASmPBzwQT0qwpswV5Op2g/SiaoP3ZbIKiZ+7SrQNOenPQf9AJA6mVK6eJzEB3ljZURgtqiNF0OnHpBdFxfsI3+BilhCnwmJpkPVR7ahc9lS8EkQnuuDeuHtvEbuz/VzuNOIaE6oHXcEpVTNj/gcgLTaT+ILjO8T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4cZ6utoxvcVnNB2UcedPbyY+On7egzVT7R6yNJH8nrBkIbEHa6S9EWjNHqEe0jSR/J7S1MLjH0Xo0of+DJ9Oz88+PB9KfO5A+kHPe43m0v/2RkJoM8j7lqziHgvSj+EFUk/WGNVcWcmm949+AYA1FyYimPLvPRVJ/nPKioIBBrG0aBW5cYG0DVGzmM3M8mMesUnrYrFZtxR6JhTAwOBAPsgGktHV9QG4urNyUpjxmVQInLHSOa+GDG01QbabZ0k3UimkaeLu92xrNgM4Zzb2Fwl8rkJvgRWHLDHU1BwyRR81gPRRVS1p+luxiw+OAwoEbzGHV8DDMWnUGbnYw4kXs1i8c9a0N5bT9xGGGi7p+PW2nm4npaM/w34yCQQ3tQFB3SzRqyncCYPzGXQC4l+193Pd/Lu6BTqdJZoOr/tuq5N/GZlsYDYJqQxxGpeCyrjreJxH7f39paltdV4TSehLAXFzv7j9vuyjWoiFi772Sxks7NjVvN96Z02Ymc1sdnjlfv6Kp83DgPjgjHJ45vyP34WDqcpxev+/8jpp74qvWBlrA3AHBnbu4Cx+6C7u79E4yD0n/+yhx9W118dz3TfC+sPTjk6Jmrq2JVf1XDO/EIl8fJEdNM+n/UOH5zs2fAQAA//96B2pdECIAAA==",
"contentTimestamp": "2023-09-30T08:10:43Z",
"contentUrl": "https://raw.githubusercontent.com/IBM/ibm-spectrum-scale-bridge-for-grafana/master/examples/grafana_dashboards/simple.json",
"hash": "f87e6517b93925759a62e23e574ba4b2e317852f596501df5f633161f293df9b",
"lastResync": "2023-09-30T08:10:43Z",
"uid": "Kobhx3d7k"
}
In the Grafana web interface sidebar the dashboard will be listed in the my-dashbords folder.