Oracle Observability and Management Solution Templates
This is an example on how to export, add & deploy dashboards in Logging Analytics.
Note the dashboard OCID and take a screenshot
Fork this repo https://github.com/oracle-quickstart/oci-o11y-solutions/fork
git clone https://github.com/<your-github-id>/oci-o11y-solutions.git
cd oci-o11y-solutions
git branch -b my-branch main
cd content/dashboards
export DASHBOARD_ID=”<OCID….>”
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
Copy the dashboard screenshot to contents/documentation directory.
cp /path/to/my-dashboard.png contents/documentation
git add contents/dashboards/my-dashboard.json
git add contents/documentation/my-dashboard.png
git commit -a -m "Adding my new dashboard and screenshot"
git push origin my-branch