Skip to content

Commit 56cd243

Browse files
authored
Merge branch 'master' into v6.1
2 parents 46b6c34 + 367bf70 commit 56cd243

16 files changed

+106
-30
lines changed

.circleci/config.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,10 @@ jobs:
3131
command: |
3232
. venv/bin/activate
3333
cd source
34-
docker build -t bridge_image:gpfs505 .
34+
docker build -t bridge_image:latest .
3535
3636
3737
workflows:
3838
main:
3939
jobs:
40-
- build-and-test:
41-
filters:
42-
branches:
43-
only: v6.1
40+
- build-and-test

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: Helene
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- IBM Spectrum Scale system type:
28+
- [ ] IBM Spectrum Scale classic cluster.
29+
- [ ] IBM Spectrum Scale Container Native Storage Access (CNSA).
30+
- [ ] IBM Elastic Storage Server (ESS).
31+
- IBM Spectrum Scale cluster version:
32+
- IBM Spectrum Scale bridge for Grafana version:
33+
- Grafana version:
34+
- OS Grafana is installed on:
35+
36+
**Additional context**
37+
Add any other context about the problem here.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ Grafana Bridge is a standalone Python application. It translates the IBM Spectru
1818

1919
* [Setup the grafana bridge on a classic IBM Spectrum Scale cluster](/docs/CLASSIC_SETUP.md)
2020
* [Run the grafana bridge in a docker container](/docs/RUNNING_AS_DOCKER_CONTAINER.md)
21-
* [Deploying the grafana bridge for an IBM Spectrum Scale cloud native project in a k8s/OCP environment](/docs/grafana_bridge_deployment_ocp.md)
22-
* [Deploying a Grafana instance for the IBM Spectrum Scale cloud native project in a k8s/OCP environment](/docs/grafana_deployment_ocp.md)
21+
* [Deploying the grafana bridge for an IBM CNSA project in a k8s/OCP environment](/docs/grafana_bridge_deployment_ocp.md)
22+
* [Deploying a Grafana instance for the IBM CNSA project in a k8s/OCP environment](/docs/grafana_deployment_ocp.md)
2323
* [Connecting the grafana-bridge datasource to the Grafana instance in a k8s/OCP environment](/docs/connect_bridge_to_grafana_ocp.md)
24-
* [Explore the Grafana WEB interface for the CNSS project in a k8s/OCP environment](/docs/explore_grafana_ocp.md)
24+
* [Explore the Grafana WEB interface for the IBM CNSA project in a k8s/OCP environment](/docs/explore_grafana_ocp.md)
2525

2626

2727

docs/BUILDING_DOCKER_IMAGE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Building a docker image for the IBM Spectrum Scale Performance Monitoring Bridge
2+
3+
4+
5+
**IMPORTANT:** for the building an image you need a host running docker/podman on it.
6+
7+
8+
1. Clone this repository using git in your favourite directory
9+
10+
```shell
11+
# git clone https://github.com/IBM/ibm-spectrum-scale-bridge-for-grafana.git grafana_bridge
12+
```
13+
14+
15+
2. Create the bridge container image
16+
17+
```shell
18+
# cd grafana_bridge/source
19+
20+
# podman build -t bridge_image:latest .
21+
```
22+

docs/RUNNING_AS_DOCKER_CONTAINER.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ IMPORTANT The IBM Spectrum Scale system must run 5.0.5.2 or above.
2020

2121

2222

23-
### On the host running docker/podman perform the following steps:
23+
### On a host running docker/podman perform the following steps:
2424

2525

2626
1. Clone this repository using git in your favourite directory

docs/SUPPORT_MATRIX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The following matrix gives a quick overview of the supported software for the IB
44
- Python 3.6
55
- CherryPy 18.0.0
66
- IBM Spectrum Scale system must run 5.0.5 FP2 and above or
7-
- IBM Spectrum Scale cloud native (CNSS) devices having minReleaseLevel 5.1.0.1
7+
- IBM Spectrum Scale Container Native Storage Access(CNSA) devices having minReleaseLevel 5.1.0.1
88
- Grafana 7.1.0 and above
99

1010
# Version 6 (11/01/2020)

docs/connect_bridge_to_grafana_ocp.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Connecting the grafana-bridge datasource to the Grafana for CNSS instance
1+
# Connecting the grafana-bridge datasource to the Grafana for CNSA instance
22

33

44
![](/docs/bridge_connect_grafana_ocp.png)
@@ -42,6 +42,9 @@ eyJhbGciOiJSUzI1NiIsImtpZCI6IlFIV0dLT1ZITlpqQ1lXc05TNUNkVjZ2MDFJVUp2SjFnR3lkR2Iz
4242

4343
Substituite ${BEARER_TOKEN} with the output of the command above in the grafana-bridge-datasource.yaml
4444
Also 'TLS cert ${TLS_CERT}', 'TLS key ${TLS_KEY}' need to be replaced with TLS key and certificate, we have generated for the grafana-bridge.
45+
Replace ${namespace-name of the CNSA project} in the grafana-bridge service URL with the namespace name of your CNSA cluster project.
46+
47+
Finally modify the 'namespace: <grafana-instance namespace>' field to point to your Grafana instance project name.
4548

4649
The GrafanaDataSource deployment script for the grafana-bridge datasource will look as below:
4750

docs/explore_grafana_ocp.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Explore Grafana WEB interface for CNSS project in a k8s/OCP environment
1+
# Explore Grafana WEB interface for CNSA project in a k8s/OCP environment
22

33

44

@@ -39,4 +39,9 @@ Click on Configuration > Data Sources in the side menu and you’ll be taken to
3939
![](/docs/grafana_ui_datasource_view.png)
4040

4141

42-
Now, an editable Grafana interface appears and you can view your custom Grafana dashboards or create your own.
42+
In the grafana-bridge datasource settings make sure the OpenTSDB version 2.3 is selected. Finally click on 'Save & Test' button.
43+
44+
![](/docs/grafana_ui_datasource_editor.png)
45+
46+
47+
Now you can import some predefined Grafana dashboards or create your own.

docs/grafana_bridge_deployment_ocp.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
### Dependencies
66
This instructions could be used for:
7-
- IBM Spectrum Scale cloud native (CNSS) devices having minimum release level 5.1.0.1 and above
7+
- IBM Spectrum Scale Container Native Storage Access(CNSA) devices having minimum release level 5.1.0.1 and above
88

99

10-
1. Follow the [instructions](/docs/RUNNING_AS_DOCKER_CONTAINER.md) and create the IBM Spectrum Scale bridge for Grafana image
10+
1. Follow the [instructions](/docs/BUILDING_DOCKER_IMAGE.md) and create the IBM Spectrum Scale bridge for Grafana image
1111

1212

13-
2. Make sure you have deployed the IBM Spectrum Scale cloud native (CNSS) cluster including the ibm-spectrum-scale-pmcollector pods.
14-
For more information about how to deploy a CNSS cluster please refer to the [IBM Spectrum Scale Knowledge Center](https://www.ibm.com/support/knowledgecenter/STXKQY_CNS_SHR/com.ibm.spectrum.scale.cns.v5r101.doc/introduction.html)
13+
2. Make sure you have deployed the IBM Spectrum Scale Container Native Storage Access(CNSA) cluster including the ibm-spectrum-scale-pmcollector pods.
14+
For more information about how to deploy a CNSA cluster please refer to the [IBM Spectrum Scale Knowledge Center](https://www.ibm.com/support/knowledgecenter/STXKQY_CNS_SHR/com.ibm.spectrum.scale.cns.v5r101.doc/introduction.html)
1515

1616
```
1717
[root@mycluster-inf ~]# oc get po -o wide
@@ -40,8 +40,11 @@ ibm-spectrum-scale-pmcollector ClusterIP None <none> 9085
4040

4141
3. Copy the content of the example_deployment_scripts directory to your favourite directory on the master node.
4242
Additionally perform the following modifications in the files before you start with the deployment:
43-
- Open the example_deployment_scripts/bridge_deployment/bridge-service.yaml file with an editor and set the namespace name of your CNSS cluster project.
43+
- Open the example_deployment_scripts/bridge_deployment/bridge-service.yaml file with an editor and set the namespace name of your CNSA cluster project.
4444
- Edit the example_deployment_scripts/bridge_deployment/bridge-deployment.yaml and modify the image: field to point to the bridge image location, you created before.
45+
- In case you are pulling the image from a private Docker registry or repository you need to create a Secret based on existing Docker credentials and
46+
put the secret name under imagePullSecrets settings in the example_deployment_scripts/bridge_deployment/bridge-deployment.yaml
47+
For more Information please refer to the Kubernetes documentation about [Pull an Image from a Private Registry](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/)
4548

4649

4750
4. Create the TLS certificate and the private key

docs/grafana_deployment_ocp.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424

25-
## Deploying Grafana instance for the IBM Spectrum Scale cloud native (CNSS) project in a k8s/OCP environment
25+
## Deploying Grafana instance for the IBM Spectrum Scale Container Native Storage Access(CNSA) project in a k8s/OCP environment
2626

2727

2828
1. create a new project, for example: my-grafana
@@ -42,7 +42,10 @@ to build a new example application in Python. Or use kubectl to deploy a simple
4242
```
4343

4444

45-
2. Navigate to OperatorHub and select the community-powered Grafana Operator. Press Continue to accept the disclaimer, press Install, and press Subscribe to accept the default configuration values and deploy to the my-grafana namespace.
45+
2. Update the 'namespace:' field in the example_deployment_scripts/grafana_deployment/grafana-instance-for-cnss.yaml script with the new created project name.
46+
47+
48+
3. Navigate to OperatorHub and select the community-powered Grafana Operator. Press Continue to accept the disclaimer, press Install, and press Subscribe to accept the default configuration values and deploy to the my-grafana namespace.
4649

4750
![](/docs/operator_hub.png)
4851

@@ -62,7 +65,7 @@ grafana-operator-857c86c65d-62t7m 1/1 Running 0 78s
6265
```
6366

6467

65-
3. Change to the directory example_deployment_scripts/grafana_deployment/ and apply the grafana-instance-for-cnss.yaml file
68+
4. Change to the directory example_deployment_scripts/grafana_deployment/ and apply the grafana-instance-for-cnss.yaml file
6669

6770
```
6871
[root@mycluster-inf ~]# cd /opt/example_deployment_scripts/grafana_deployment

0 commit comments

Comments
 (0)