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: README.md
+18-16Lines changed: 18 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -15,36 +15,40 @@ This project deploys a self-supported Grafana operator. It does not modify the
15
15
## Requirements
16
16
17
17
This was deployed and tested with:
18
-
* OpenShift 4.9
19
-
* Grafana Operator 4.2.0 from OperatorHub
18
+
* OpenShift 4.15
19
+
* Grafana Operator 5.6.3 from OperatorHub
20
+
* OpenShift GitOps 1.11.1
20
21
21
-
## Deployment
22
+
## GitOps Approach
22
23
23
-
### 1a. Deploy Grafana operator from OperatorHub
24
+
A GitOps approach using OpenShift GitOps (ArgoCD) is recommended over executing the above instructions manually. Install OpenShift GitOps from OperatorHub, and then deploy the ArgoCD application into the openshift-gitops namespace as follows:
24
25
25
-
Create a new project (i.e. my-grafana) and deploy the community-supported Grafana operator from OperatorHub. The Grafana operator creates Custom Resource Definitions (CRDs) for the following objects:
26
-
* grafanas.integreatly.org
27
-
* grafanadatasources.integreatly.org
28
-
* grafanadashboards.integreatly.org
26
+
```
27
+
oc apply -f custom-grafana.application.yaml
28
+
```
29
29
30
-
To create a Grafana resource from the UI, navigate to Installed Operators -> Grafana Operator -> Grafana -> Create Grafana. Configure your Grafana resource as desired, and press Create.
30
+
## Manual Deployment
31
31
32
-
### 1b. Additional instructions for deploying in a restricted network
32
+
### 1. Deploy Grafana operator from OperatorHub
33
33
34
-
Follow these additional instructions to [deploy Grafana operator in a restricted network].
34
+
Create a new project (i.e. my-grafana) and deploy the community-supported Grafana operator from OperatorHub.
35
+
36
+
To create a Grafana resource from the UI, navigate to Installed Operators -> Grafana Operator -> Grafana -> Create Grafana. Configure your Grafana resource as desired, and press Create.
35
37
36
38
### 2. Deploy GrafanaDataSource for Prometheus
37
39
38
-
The grafana-serviceaccount service account was created alongside the Grafana instance. We will grant it the cluster-monitoring-view cluster role.
40
+
The grafana-sa service account was created alongside the Grafana instance. We will grant it the cluster-monitoring-view cluster and openshift-cluster-monitoring-view roles, as well as project edit role to access secrets in the my-grafana project.
The bearer token for this service account is used to authenticate access to Prometheus in the openshift-monitoring namespace. The following command will display this token.
From the Grafana Data Source resource, press Create Instance, and navigate to the YAML view. Create the [example GrafanaDataSource], substituting `${BEARER_TOKEN}` with the output of the command above.
@@ -63,7 +67,6 @@ oc create -f <dashboard>
63
67
64
68
If you are unable to deploy the GrafanaDashboard custom resources, I have also provided [JSON dashboards] which can be imported directly from within the Grafana console.
65
69
66
-
67
70
## License
68
71
69
72
GPLv3
@@ -72,7 +75,6 @@ GPLv3
72
75
73
76
Kevin Chung
74
77
75
-
[deploy Grafana operator in a restricted network]: restricted-setup.md
0 commit comments