Skip to content

Commit

Permalink
Merge pull request #15 from oracle-quickstart/kumar-ola-patch-2
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
kgvarun authored Mar 7, 2023
2 parents 76067df + f40f12a commit e230509
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,34 @@ This is an example on how to export, add & deploy dashboards in Logging Analyti

## Sharing new Logging Analytics 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}'
### Clone the Module
Now, you'll want a local copy of this repo. You can make that with the commands:
## Create your dashboard 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/oracle-quickstart/oci-o11y-solutions.git
## 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
cp my-dashboard.json contents/dashboards
cp my-dashboard.png contents/documentation
## 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 Dashboard files"
git commit -a -m "Adding my new dashboard and screenshot"
git push origin my-branch

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

0 comments on commit e230509

Please sign in to comment.