This OCI Resource Manager (RM) Stack deploys a pre-configured Grafana Linux instance on OCI. It automates the setup of a Linux instance, Grafana installation, security configurations, polices and OCI metric integration.
Before deploying this stack, ensure you have:
- An active OCI account with necessary permissions
- Access to OCI Console
- A Compartment for the Grafana instance
- A public VCN
- SSH public key for instance access
This stack deploys and configures the following resources:
- Linux compute instance with Grafana
- Dynamic group and policy
- Security list configurations for Grafana access
Gather the following information before deployment:
- Compartment Name
- Availability Domain name
- Virtual Cloud Name
- Subnet Name (Public)
- SSH public key
- Desired hostname for the instance
- Dynamic group name
- Policy name
-
Log in to OCI Console
-
Navigate to Marketplace > All Applications
-
Search for Grafana
-
Choose the compartment and version and click Launch Instance
-
Fill in the required variables as prompted:
-
General Configuration:
-
Instance Configuration:
- Hostname
- Linux Image (Oracle-Linux-8.9-2024.05.29-0 recommended and tested)
- Linux Instance Shape (Choose from list, to suite your monitoring requirements). Minimum requirements; memory:512MB, CPU:1.
- Number of OCPUs (for flexible shapes)
- Memory in GBs (for flexible shapes)
- Assign Public IP (default: true)
- SSH Public Key
-
Policy Name:
-
- Locate the public IP address of the deployed instance in the job output
- Open a web browser and navigate to
http://<instance_public_ip>:3000
- Log in with the default credentials:
- Username: admin
- Password: admin
- You will be prompted to change the password on first login
- Navigate to the Menu on the left > Connections > Data Sources
- Click on Add data source
- In the Search box type : oracle
- Click on Oracle Cloud Infrastructure Metrics
- Click on Authentication Provider under Connection Details and select OCI Instance
- Click on Save & test and verify Success
After deployment, you can import custom dashboards in Grafana to visualise your OCI metrics. All dashboards are located in the Dashboards directory (https://github.com/Mesh44/Grafana-Install/tree/main/Dashboards)
- Click on one of dashboard json files (for example Stack_Monitoring.json)
- Copy the content the content.
- On the Grafana install click on Dashboards and New > Import
- Past the copied content (from step 2) to the section under "Import via dashboard JSON model" and click Load Ensure to choose oci-metrics-datasource as the Default data source.
- Cannot access Grafana: Verify that port 3000 is open in your VCN's security list and the instance's firewall.
- OCI Monitoring Data Source not working: Check that the dynamic group and policies are correctly configured to allow metric reading.
For support, please open an issue in the project's GitHub repository. Contributions to improve the stack are welcome via pull requests.
[Include license information]