You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/managing-workflow/platform-monitoring.md
+20-70Lines changed: 20 additions & 70 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@
4
4
5
5
We now include a monitoring stack for introspection on a running Kubernetes cluster. The stack includes 3 components:
6
6
7
-
*[Telegraf](https://docs.influxdata.com/telegraf/v0.12/) - Metrics collection daemon written by team behind InfluxDB.
8
-
*[InfluxDB](https://docs.influxdata.com/influxdb/v0.12/) - Time series database
7
+
*[Telegraf](https://docs.influxdata.com/telegraf) - Metrics collection daemon written by team behind InfluxDB.
8
+
*[InfluxDB](https://docs.influxdata.com/influxdb) - Time series database
9
9
*[Grafana](http://grafana.org/) - Graphing tool for time series data
10
10
11
11
## Architecture Diagram
@@ -40,24 +40,25 @@ We now include a monitoring stack for introspection on a running Kubernetes clus
40
40
└──────────┘
41
41
```
42
42
43
-
## Grafana
44
-
45
-
Deis Workflow exposes Grafana through the router using [service annotations](https://github.com/deis/router#how-it-works). This
46
-
allows users to access the Grafana UI at `http://grafana.mydomain.com`. The default username/password of
47
-
`admin/admin` can be overridden at Workflow chart install time by modifying the appropriate values under the `monitor` section in Workflow's global [values.yaml](https://github.com/deis/workflow/blob/master/charts/workflow/values.yaml) or via `--set`:
48
-
49
-
```
50
-
helm install <workflow repo>/workflow --namespace deis \
Grafana allows users to create custom dashboards that visualize the data captured to the running InfluxDB component. By default Grafana is exposed using a [service annotation](https://github.com/deis/router#how-it-works) through the router at the following URL: `http://grafana.mydomain.com`. The default login is `admin/admin`. If you are interested in changing these values please see [Tuning Component Settings][].
53
45
54
46
Grafana will preload several dashboards to help operators get started with monitoring Kubernetes and Deis Workflow.
55
47
These dashboards are meant as starting points and don't include every item that might be desirable to monitor in a
56
48
production installation.
57
49
58
50
Deis Workflow monitoring by default does not write data to the host filesystem or to long-term storage. If the Grafana instance fails, modified dashboards are lost.
59
51
52
+
### Production Configuration
53
+
A production install of Grafana should have the following configuration values changed if possible:
54
+
55
+
* Change the default username and password from `admin/admin`. The value for the password is passed in plain text so it is best to set this value on the command line instead of checking it into version control.
56
+
* Enable persistence
57
+
* Use a supported external database such as mysql or postgres. You can find more information [here](https://github.com/deis/monitor/blob/master/grafana/rootfs/usr/share/grafana/grafana.ini.tpl#L62)
58
+
59
+
60
60
### On Cluster Persistence
61
+
Enabling persistence will allow your custom configuration to persist across pod restarts. This means that the default sqllite database (which stores things like sessions and user data) will not disappear if you upgrade the Workflow installation.
61
62
62
63
If you wish to have persistence for Grafana you can set `enabled` to `true` in the `values.yaml` file before running `helm install`.
63
64
@@ -70,30 +71,14 @@ If you wish to have persistence for Grafana you can set `enabled` to `true` in t
70
71
size: 5Gi # PVC size
71
72
```
72
73
73
-
You have to set (if you do not have it already) `standard` StorageClass as per [PVC Dynamic Provisioning](#pvc-dynamic-provisioning), as it does not get set by default in Kubernetes v1.4.x and v1.5.x.
74
-
75
-
76
74
### Off Cluster Grafana
77
75
78
76
If you wish to provide your own Grafana instance you can set `grafana_location` in the `values.yaml` file before running `helm install`.
79
77
80
-
## InfluxDB
81
-
82
-
InfluxDB writes data to the host disk, however, if the InfluxDB pod dies and comes back on
83
-
another host, the data will not be recovered you need to enable on-cluster persistence for data to persist. The InfluxDB Admin UI is also
84
-
exposed through the router allowing users to access the query engine by going to `influx.mydomain.com`. You will need to
85
-
configure where to find the `influx-api` endpoint by clicking the "gear" icon at the top right and changing the host to
86
-
`influxapi.mydomain.com` and port to `80`.
87
-
88
-
** Note: Each user accessing the Influx UI will need to make this change. **
89
-
90
-
You can choose to not expose the Influx UI and API to the world by updating
91
-
`$CHART_HOME/workspace/workflow-$WORKFLOW_RELEASE/manifests/deis-monitor-influxdb-api-svc.yaml` and
92
-
`$CHART_HOME/workspace/workflow-$WORKFLOW_RELEASE/manifests/deis-monitor-influxdb-ui-svc.yaml` and removing the
93
-
following line - `router.deis.io/routable: "true"`.
InfluxDB writes data to the host disk; however, if the InfluxDB pod dies and comes back on another host, the data will not be recovered. The InfluxDB Admin UI is also exposed through the router allowing users to access the query engine by going to `influx.mydomain.com`. You will need to configure where to find the `influx-api` endpoint by clicking the "gear" icon at the top right and changing the host to `influxapi.mydomain.com` and port to `80`.
94
80
95
81
### On Cluster Persistence
96
-
97
82
If you wish to have persistence for InfluxDB you can set `enabled` to `true` in the `values.yaml` file before running `helm install`.
98
83
99
84
```
@@ -105,9 +90,6 @@ If you wish to have persistence for InfluxDB you can set `enabled` to `true` in
105
90
size: 5Gi # PVC size
106
91
```
107
92
108
-
You have to set (if you do not have it already) `standard` StorageClass as per [PVC Dynamic Provisioning](#pvc-dynamic-provisioning), as it does not get set by default in Kubernetes v1.4.x and v1.5.x.
109
-
110
-
111
93
### Off Cluster Influxdb
112
94
113
95
To use off-cluster Influx, please provide the following values in the `values.yaml` file before running `helm install`.
@@ -119,41 +101,7 @@ To use off-cluster Influx, please provide the following values in the `values.ya
119
101
*`password = "MysuperSecurePassword"`
120
102
121
103
122
-
## PVC Dynamic Provisioning
123
-
124
-
Kubernetes v1.4.x has introduced Dynamic Provisioning and Storage Classes, you can read about it [here](http://blog.kubernetes.io/2016/10/dynamic-provisioning-and-storage-in-kubernetes.html).
125
-
126
-
To use persistence for Grafana and InfluxDB you also need to deploy StorageClass objects to the Kubernetes cluster with `kubectl create -f storage-standard.yaml`.
127
-
128
-
Note: GCE/GKE and AWS have different `StorageClass` settings.
Telegraf is the metrics collection daemon used within the monitoring stack. It will collect and send the following metrics to InfluxDB:
159
107
@@ -163,6 +111,8 @@ Telegraf is the metrics collection daemon used within the monitoring stack. It w
163
111
164
112
It is possible to send these metrics to other endpoints besides InfluxDB. For more information please consult the following [file](https://github.com/deis/monitor/blob/master/telegraf/rootfs/config.toml.tpl)
165
113
166
-
### Customizing
114
+
### Customizing the Monitoring Stack
115
+
116
+
To learn more about customizing each of the above components please visit the [Tuning Component Settings][] section.
167
117
168
-
To learn more about customizing each of the above components please visit the [monitor](https://github.com/deis/monitor) repository for more information.
for more information on tuning the [Monitor][] component.
145
+
### [Grafana](https://grafana.com/)
146
+
We have exposed some of the more useful configuration values directly in the chart. This allows them to be set using either the `values.yaml` file or by using the `--set` flag with the Helm CLI. You can see these options below:
user | "admin" | The first user created in the database (this user has admin privileges)
151
+
password | "admin" | Password for the first user.
152
+
allow_sign_up | "true" | Allows users to sign up for an account.
153
+
154
+
For a list of other options you can set by using environment variables please see the [configuration file](https://github.com/deis/monitor/blob/master/grafana/rootfs/usr/share/grafana/grafana.ini.tpl) in Github.
For a list of configuration values that can be set by using environment variables please see the following [configuration file](https://github.com/deis/monitor/blob/master/telegraf/rootfs/config.toml.tpl).
You can find a list of values that can be set using environment variables [here](https://github.com/deis/monitor/blob/master/influxdb/rootfs/home/influxdb/config.toml.tpl).
0 commit comments