Skip to content

Commit

Permalink
Add canary analysis Grafana dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Oct 2, 2018
1 parent cfc1621 commit 73644ea
Show file tree
Hide file tree
Showing 17 changed files with 2,008 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test: test-fmt test-codegen
go test ./...

helm-package:
cd charts/ && helm package steerer/ && helm package podinfo-steerer/
cd charts/ && helm package steerer/ && helm package podinfo-steerer/ && helm package grafana/
mv charts/*.tgz docs/
helm repo index docs --url https://stefanprodan.github.io/steerer --merge ./docs/index.yaml

Expand Down
21 changes: 21 additions & 0 deletions charts/grafana/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
6 changes: 6 additions & 0 deletions charts/grafana/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
name: grafana
version: 5.2.4
appVersion: 5.2.0
description: A Helm chart for monitoring progressive deployments powered by Istio and Steerer
home: https://github.com/stefanprodan/steerer
65 changes: 65 additions & 0 deletions charts/grafana/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Weave Cloud Grafana

Grafana v5 with Kubernetes dashboards and Prometheus and Weave Cloud data sources.

## Installing the Chart

To install the chart with the release name `my-release`:

```console
$ helm install stable/grafana --name my-release \
--set service.type=NodePort \
--set token=WEAVE-TOKEN \
--set password=admin
```

The command deploys Grafana on the Kubernetes cluster in the default namespace.
The [configuration](#configuration) section lists the parameters that can be configured during installation.

## Uninstalling the Chart

To uninstall/delete the `my-release` deployment:

```console
$ helm delete --purge my-release
```

The command removes all the Kubernetes components associated with the chart and deletes the release.

## Configuration

The following tables lists the configurable parameters of the Grafana chart and their default values.

Parameter | Description | Default
--- | --- | ---
`image.repository` | Image repository | `grafana/grafana`
`image.pullPolicy` | Image pull policy | `IfNotPresent`
`image.tag` | Image tag | `5.0.1`
`replicaCount` | desired number of pods | `1`
`resources` | pod resources | `none`
`tolerations` | List of node taints to tolerate | `[]`
`affinity` | node/pod affinities | `node`
`nodeSelector` | node labels for pod assignment | `{}`
`service.type` | type of service | `LoadBalancer`
`url` | Prometheus URL, used when Weave token is empty | `http://prometheus:9090`
`token` | Weave Cloud token | `none`
`user` | Grafana admin username | `admin`
`password` | Grafana admin password | `none`

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

```console
$ helm install stable/grafana --name my-release \
--set=token=WEAVE-TOKEN \
--set password=admin
```

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

```console
$ helm install stable/grafana --name my-release -f values.yaml
```

> **Tip**: You can use the default [values.yaml](values.yaml)
```
Loading

0 comments on commit 73644ea

Please sign in to comment.