@@ -5,25 +5,34 @@ This is an example on how to export, add & deploy dashboards in Logging Analyti
55
66## Sharing new Logging Analytics Dashboards
77
8- ### Export Dashboard json
9- export DASHBOARD_ID=”<OCID….>”
10- oci raw-request --http-method GET --target-uri https://managementdashboard.us-phoenix-1.oci.oraclecloud.com/20200901/managementDashboards/${DASHBOARD_ID} | jq .data | jq '.compartmentId = "${compartment_ocid}"' | jq -n -s '{dashboards: inputs}'
11-
12- ### Clone the Module
13- Now, you'll want a local copy of this repo. You can make that with the commands:
8+ ## Create your dashboard in Logging Analytics
9+
10+ Note the dashboard OCID and take a screenshot
11+
12+
13+ ## Fork this repo https://github.com/oracle-quickstart/oci-o11y-solutions/fork
1414
15- git clone https://github.com/oracle-quickstart/oci-o11y-solutions.git
15+ ## Clone the forked repo in OCI Cloud Shell or your Local Workstation
16+
17+ git clone https://github.com/<your-github-id>/oci-o11y-solutions.git
1618 cd oci-o11y-solutions
1719 git branch -b my-branch main
1820
19- ### Add dashboard files
20- cp my-dashboard.json contents/dashboards
21- cp my-dashboard.png contents/documentation
21+ ## Add dashboard files
22+ cd content/dashboards
23+
24+ ### Export Dashboard json
25+ export DASHBOARD_ID=”<OCID….>”
26+ oci raw-request --http-method GET --target-uri https://managementdashboard.us-phoenix-1.oci.oraclecloud.com/20200901/managementDashboards/${DASHBOARD_ID} | jq .data | jq '.compartmentId = "${compartment_ocid}"' | jq -n -s '{dashboards: inputs}' >> my-dashboard.json
27+
28+ Copy the dashboard screenshot to contents/documentation directory.
29+
30+ cp /path/to/my-dashboard.png contents/documentation
2231
2332### Commit and push changes
2433 git add contents/dashboards/my-dashboard.json
2534 git add contents/documentation/my-dashboard.png
26- git commit -a -m "Adding Dashboard files "
35+ git commit -a -m "Adding my new dashboard and screenshot "
2736 git push origin my-branch
2837
29- ### Create Pull Request
38+ ### Create Pull Request on your forked Github repo to merge your new dashboards to Oracle-quickstart main repo for publishing.
0 commit comments