Skip to content

Commit

Permalink
manual dashboards import instructions update
Browse files Browse the repository at this point in the history
  • Loading branch information
paliwalparitosh committed Feb 14, 2025
1 parent 7b7ea1a commit 72ccedb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,19 @@ Dashboards needs to be imported manually. Below is an example for importing Dash
3. Download the dashboard JSONs from [here](terraform/modules/dashboards/dashboards_json/).
4. **Replace** all the instances of the keyword - "`${compartment_ocid}`" in the JSONs with the **Compartment OCID** identified in previous step.
* Following command is for quick reference that can be used in a linux/cloud-shell environment :
```
sed -i "s/\${compartment_ocid}/<Replace-with-Compartment-OCID>/g" *.json
```
**Note:** Do not replace the keyword {compartment_ocid}. Replace only `<Replace-with-Compartment-OCID>` with your actual target compartment OCID.
5. Replace tags placeholders: "`${freeform_tags}`" and "`${freeform_tags}`"
```
sed -i "s/\${freeform_tags}/{}/g" *.json
sed -i "s/\${defined_tags}/{}/g" *.json
```
5. Run the following commands to import the dashboards.
6. Run the following commands to import the dashboards.
```
oci management-dashboard dashboard import --from-json file://cluster.json
Expand Down

0 comments on commit 72ccedb

Please # to comment.