Skip to content

oracle-quickstart/oci-o11y-solutions

Repository files navigation

oci-o11y-solutions

Oracle Observability and Management Solution Templates

This is an example on how to export, add & deploy dashboards in Logging Analytics.

Sharing new Logging Analytics Dashboards

Create your dashboard in Logging Analytics

Note the dashboard OCID and take a screenshot

Clone the forked repo in OCI Cloud Shell or your Local Workstation

git clone https://github.com/<your-github-id>/oci-o11y-solutions.git
cd oci-o11y-solutions
git branch -b my-branch main

Add dashboard files

cd content/dashboards

Export Dashboard json

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

Commit and push changes

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

Create Pull Request on your forked Github repo to merge your new dashboards to Oracle-quickstart main repo for publishing.

About

Knowledge Content for OCI Observability and Management Services

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors 15