Giter VIP home page Giter VIP logo

grafana-install's Introduction

Grafana on OCI

Overview

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.

Prerequisites

Before deploying this stack, ensure you have:

  1. An active OCI account with necessary permissions
  2. Access to OCI Console
  3. A Compartment for the Grafana instance
  4. A public VCN
  5. SSH public key for instance access

Stack Components

This stack deploys and configures the following resources:

  • Linux compute instance with Grafana
  • Dynamic group and policy
  • Security list configurations for Grafana access

Deployment Instructions

Step 1: Prepare Required Information

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

Step 2: Using and Configuring the Marketplace image

  1. Log in to OCI Console

  2. Navigate to Marketplace > All Applications

  3. Search for Grafana

  4. Choose the compartment and version and click Launch Instance

  5. Fill in the required variables as prompted:

    • General Configuration:

      • Compartment Name
      • Availability Domain
      • Virtual Cloud Network
      • Subnet General config
    • 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 Instance Config1
    • Policy Name:

      • Dynamic Group Name
      • Policy Name Instance Config2

Post-Deployment Configuration

Accessing Grafana

  1. Locate the public IP address of the deployed instance in the job output
  2. Open a web browser and navigate to http://<instance_public_ip>:3000

Changing Default Password

  1. Log in with the default credentials:
    • Username: admin
    • Password: admin
  2. You will be prompted to change the password on first login Password Change

Configuring OCI Monitoring Data Source to add Instance Principle

  1. Navigate to the Menu on the left > Connections > Data Sources
  2. Click on Add data source AddDataSource
  3. In the Search box type : oracle
  4. Click on Oracle Cloud Infrastructure Metrics MetricSource
  5. Click on Authentication Provider under Connection Details and select OCI Instance Instance
  6. Click on Save & test and verify Success Success

Adding Custom Dashboards

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)

  1. Click on one of dashboard json files (for example Stack_Monitoring.json)
  2. Copy the content the content. copyjson
  3. On the Grafana install click on Dashboards and New > Import Import
  4. Past the copied content (from step 2) to the section under "Import via dashboard JSON model" and click Load LoadImport Ensure to choose oci-metrics-datasource as the Default data source.

Troubleshooting

  1. Cannot access Grafana: Verify that port 3000 is open in your VCN's security list and the instance's firewall.
  2. OCI Monitoring Data Source not working: Check that the dynamic group and policies are correctly configured to allow metric reading.

Support and Contribution

For support, please open an issue in the project's GitHub repository. Contributions to improve the stack are welcome via pull requests.

License

[Include license information]

grafana-install's People

Contributors

mesh44 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.