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: examples/kubernetes/README.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,18 @@ This example has been developed and tested using the Kubernetes Engine packaged
19
19
<imgalt="enabled kubernetes engine in docker"src="../../assets/examples_enable_kubernetes_engine.png">
20
20
</p>
21
21
22
+
## Setup Prometheus and Grafana
23
+
1.`cd` into the *scripts* folder and run the setup script with `./setup.sh` - the process of configuring Prometheus and Grafana.
24
+
25
+
2. In your browser, go to `localhost:32000`, which will be the login page of grafana. Use `admin` as both username and password to login. You can change the password after login.
26
+
27
+
3. Navigate to `Home -> Administration -> Service accounts`, then click `Add service account` to create an service account. Be sure to choose `Admin` as the role. Then click `Add service account token`, hit `generate`, you are done! Remember this token, you will be using this token to access Grafana HTTP API programmatically.
28
+
29
+
4. Add a `.env` file to the *server* folder that contains the following key/value pairs:
30
+
31
+
```
32
+
CHRONOS_GRAFANA_API_KEY = Bearer [the access token you created in step 3]
33
+
```
22
34
23
35
## Build the Client
24
36
1.`cd` into the *client* folder and run the following command:
@@ -29,7 +41,7 @@ docker build -t frontend:1.0 .
29
41
30
42
31
43
## Build the Server
32
-
1.Add a`.env` file to the *server* folder that contains the following key/value pairs:
44
+
1.In the`.env` file you just created, add the following key/value pairs as well:
33
45
34
46
```
35
47
CHRONOS_DB = MongoDB or PostgreSQL
@@ -56,9 +68,6 @@ docker build -t backend:1.0 .
56
68
## Deploy the Cluster
57
69
1.`cd` into the launch folder and run the following commands to start the services and deployments described in the YAML files:
0 commit comments