npm package: @provisioner/grafana
Description: CodeZero provisioner for Grafana
Author: Grant Burnard
Latest version: 0.0.31

# Grafana provisioner

This is a simple Grafana provisioner.  Once you've created an app called "grafana", go ahead and install it.  When installing, you will need to choose your adminsitrator credentials.  Install into whatever namespace you like.

> Before you can test it out, be sure to address both known issues below first.

To test out Grafana once it's running in a cluster, browse to:
http://localhost:3000/ and enter your administrator credentials.  If you didn't supply any, use admin / admin.

Grafana configuration options:
https://grafana.com/docs/grafana/latest/installation/configuration/

## Known issues:

### Port forwarding (manual step for now)

``` bash
kubectl -n <namespace> port-forward service/grafana 3000:3000
```

### Sample provisioner config addendum

Once you've created an app called "grafana", be sure to modify the app's database entry in MongoDb with the following edits / insertions:

```
{
    ...
    "name" : "grafana",
    "namespace" : "grafana",
    ...
    "spec" : {
        "services" : {
            "grafana" : {
                "storage" : "1Gi",
                "adminUsername" : "",
                "adminPassword" : ""
            }
        }
    },
    "install" : {
        "path" : "/index.js",
        "stages" : [
            {
                "id" : "g-creds",
                "title" : "Credentials",
                "tag" : "grafana-credentials"
            }
        ]
    },
    "icon" : "PHN2ZyBoZWlnaHQ9IjY0IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHdpZHRoPSI2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJtMTIyOS42IDMyOC42cy0uNyAyLjktMS42IDcuOGMtOC4zIDIuNC0xNi42IDQuNy0yNC45IDcuNC0xMS41IDMuNS0yMi44IDcuNy0zNC4zIDExLjgtMTEuMyA0LjQtMjIuOCA4LjgtMzQgMTMuOC0yMi42IDkuNy00NSAyMC42LTY2LjkgMzIuOS0yMS4yIDExLjktNDIuMSAyNS02Mi40IDM5LjItMi45LTEuNC01LjItMi40LTUuMi0yLjQtMjA3LjMtNzkuMi0zOTEuNCAxNi4xLTM5MS40I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