@@ -5,25 +5,30 @@ 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 and note the dashboard OCID and take a screenshot
9+
10+
11+ ## Fork this repo https://github.com/oracle-quickstart/oci-o11y-solutions/fork
12+
13+ ## Clone the forked repo in OCI Cloud Shell or your Local Workstation
1414
15- git clone https://github.com/oracle-quickstart /oci-o11y-solutions.git
15+ git clone https://github.com/<your-github-id> /oci-o11y-solutions.git
1616 cd oci-o11y-solutions
1717 git branch -b my-branch main
1818
19- ### Add dashboard files
20- cp my-dashboard.json contents/dashboards
19+ ## Add dashboard files
20+ cd content/dashboards
21+
22+ ### Export Dashboard json
23+ export DASHBOARD_ID=”<OCID….>”
24+ 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
25+ cp my-dashboard.json contents/dashboards
2126 cp my-dashboard.png contents/documentation
2227
2328### Commit and push changes
2429 git add contents/dashboards/my-dashboard.json
2530 git add contents/documentation/my-dashboard.png
26- git commit -a -m "Adding Dashboard files "
31+ git commit -a -m "Adding my new dashboard and screenshot "
2732 git push origin my-branch
2833
29- ### Create Pull Request
34+ ### Create Pull Request on your forked Github repo to merge your new dashboards to Oracle-quickstart main repo for publishing.
0 commit comments