jasonwalsh / terraform-grafana

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Purpose

This repository contains Terraform configurations for installing the Grafana Helm chart in a Kubernetes cluster and using the Grafana Terraform provider to create resources such as groups, dashboards, and more.

Prerequisites

This repository assumes you have access to the following:

Quick Start

The quick start uses minikube. If you do not have minikube installed, please download it from their releases page.

Note: This quick start guide uses minikube version: v1.18.1. You can download this version here.

Disclaimer: I have not tested this repository against other versions of minikube.

After installing minikube, you need to set up an ingress. To install the NGINX Ingress Controller, run the following command:

minikube addons enable ingress

After the ingress controller is installed, you can then run the following Terraform commands:

terraform init
terraform apply

The plan will create the following resources:

grafana_organization.this
helm_release.this
kubernetes_secret.this

The Kubernetes secret contains the Grafana username and password used (admin:admin).

The Helm release installs the Grafana Helm chart.

After terraform apply runs, you can access the console via your web browser. The grafana_url output contains the hyperlink to access the console. You can also invoke the following command to retrieve the hyperlink value:

terraform output grafana_url

License

MIT License

About

License:MIT License


Languages

Language:HCL 100.0%