Skip to content

Commit b7dc181

Browse files
authored
Merge pull request #184 from Helene/master
Restore master repository
2 parents d6455e5 + 62b947c commit b7dc181

27 files changed

+381
-176
lines changed

Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
ARG BASE=registry.access.redhat.com/ubi9/ubi:9.2
1+
ARG BASE=registry.access.redhat.com/ubi9/ubi:9.3
22
FROM $BASE
33

44
LABEL com.ibm.name="IBM Storage Scale bridge for Grafana"
55
LABEL com.ibm.vendor="IBM"
6-
LABEL com.ibm.version="7.1.0"
6+
LABEL com.ibm.version="8.0.0-dev"
77
LABEL com.ibm.url="https://github.com/IBM/ibm-spectrum-scale-bridge-for-grafana"
88
LABEL com.ibm.description="This tool translates the IBM Storage Scale performance data collected internally \
99
to the query requests acceptable by the Grafana integrated openTSDB plugin"
@@ -28,9 +28,13 @@ ARG HTTPPROTOCOL=http
2828
ENV PROTOCOL=$HTTPPROTOCOL
2929
RUN echo "the HTTP/S protocol is set to $PROTOCOL"
3030

31-
ARG HTTPPORT=4242
31+
ARG HTTPPORT=None
3232
ENV PORT=$HTTPPORT
33-
RUN echo "the HTTP/S port is set to $PORT"
33+
RUN echo "the OpentTSDB API HTTP/S port is set to $PORT"
34+
35+
ARG PROMPORT=None
36+
ENV PROMETHEUS=$PROMPORT
37+
RUN echo "the Prometheus API HTTPS port is set to $PROMETHEUS"
3438

3539
ARG PERFMONPORT=9980
3640
ENV SERVERPORT=$PERFMONPORT
@@ -125,8 +129,8 @@ RUN chown -R $UID:$GID /opt/IBM/bridge && \
125129
# Switch user
126130
USER $GID
127131

128-
CMD ["sh", "-c", "python3 zimonGrafanaIntf.py -c 10 -s $SERVER -r $PROTOCOL -p $PORT -P $SERVERPORT -t $TLSKEYPATH -l $LOGPATH --tlsKeyFile $TLSKEYFILE --tlsCertFile $TLSCERTFILE --apiKeyName $APIKEYNAME --apiKeyValue $APIKEYVALUE"]
132+
CMD ["sh", "-c", "python3 zimonGrafanaIntf.py -c 10 -s $SERVER -r $PROTOCOL -p $PORT -e $PROMETHEUS -P $SERVERPORT -t $TLSKEYPATH -l $LOGPATH --tlsKeyFile $TLSKEYFILE --tlsCertFile $TLSCERTFILE --apiKeyName $APIKEYNAME --apiKeyValue $APIKEYVALUE"]
129133

130-
EXPOSE 4242 8443
134+
EXPOSE 4242 8443 9250
131135

132136
#CMD ["tail", "-f", "/dev/null"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Grafana Bridge is a standalone Python application. It translates the IBM Storage
88

99

1010
<p align="center">
11-
<img src="/docs/grafana_bridge_prometheus_overview.png" />
11+
<img src="/docs/grafana-bridge-overview.png" />
1212
</p>
1313

1414

docs/RELEASE_NOTES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Version 7.1.1 (01/18/2024)
2+
Changed the Dockerfile parent image to the registry.access.redhat.com/ubi9/ubi:9.3 \
3+
4+
Tested with Grafana version 9.5
5+
Tested with RedHat community-powered Grafana operator v.5
6+
7+
8+
19
# Version 7.1.0 (11/20/2023)
210
Added a watch function observing changes in zimon sensor configuration and initiating the metadata refresh. \
311
Added methods to get metric attributes

docs/SUPPORT_MATRIX.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
The following matrix gives a quick overview of the supported software for the IBM Storage Scale bridge for Grafana packages by version number:
2+
# Version 7.1.1 (01/18/2024)
3+
Classic Scale:
4+
- Python 3.9
5+
- CherryPy 18.9.0
6+
- IBM Storage Scale system must run 5.1.9 and above
7+
- Grafana 9.5.0 and above
8+
29
# Version 7.1.0 (11/20/2023)
310
Classic Scale:
411
- Python 3.9

docs/grafana-bridge-overview.png

98.8 KB
Loading
-120 KB
Binary file not shown.

examples/prometheus_config_file/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,4 @@ You need to register the target in the prometheus.yml file to get the metrics fr
6262
systemctl enable prometheus
6363
```
6464

65+
For more configuration details, please read the content of the 'Prometheus setup' section in the project [wiki](https://github.com/IBM/ibm-spectrum-scale-bridge-for-grafana/wiki).

examples/prometheus_config_file/multiple_targets/prometheus.yml renamed to examples/prometheus_config_file/multiple_gpfs_clusters/prometheus.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,6 @@ scrape_configs:
6565
static_configs:
6666
- targets: ['<cluster1_grafana_bridge_ip>:9250']
6767

68-
- job_name: 'GPFSWaiters_cluster1'
69-
scrape_interval: 10s
70-
honor_timestamps: true
71-
metrics_path: '/metrics_gpfs_waiters'
72-
scheme: https
73-
tls_config:
74-
cert_file: /etc/prometheus/certs/cluster1/cert.pem
75-
key_file: /etc/prometheus/certs/cluster1/privkey.pem
76-
insecure_skip_verify: true
77-
static_configs:
78-
- targets: ['<cluster1_grafana_bridge_ip>:9250']
79-
8068
- job_name: 'GPFSFilesystem_cluster2'
8169
scrape_interval: 300s
8270
honor_timestamps: true
@@ -111,16 +99,4 @@ scrape_configs:
11199
key_file: /etc/prometheus/certs/cluster2/privkey.pem
112100
insecure_skip_verify: true
113101
static_configs:
114-
- targets: ['<cluster2_grafana_bridge_ip>:9250']
115-
116-
- job_name: 'GPFSWaiters_cluster2'
117-
scrape_interval: 10s
118-
honor_timestamps: true
119-
metrics_path: '/metrics_gpfs_waiters'
120-
scheme: https
121-
tls_config:
122-
cert_file: /etc/prometheus/certs/cluster2/cert.pem
123-
key_file: /etc/prometheus/certs/cluster2/privkey.pem
124-
insecure_skip_verify: true
125-
static_configs:
126102
- targets: ['<cluster2_grafana_bridge_ip>:9250']

examples/prometheus_config_file/prometheus.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,4 @@ scrape_configs:
6363
key_file: /etc/prometheus/certs/privkey.pem
6464
insecure_skip_verify: true
6565
static_configs:
66-
- targets: ['<grafana_bridge_ip>:9250']
67-
68-
- job_name: 'GPFSWaiters'
69-
scrape_interval: 10s
70-
honor_timestamps: true
71-
metrics_path: '/metrics_gpfs_waiters'
72-
scheme: https
73-
tls_config:
74-
cert_file: /etc/prometheus/certs/cert.pem
75-
key_file: /etc/prometheus/certs/privkey.pem
76-
insecure_skip_verify: true
77-
static_configs:
78-
- targets: ['<grafana_bridge_ip>:9250']
66+
- targets: ['<grafana_bridge_ip>:9250']

requirements/requirements_ubi9.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,44 @@
33
#
44
# pip-compile --output-file=/root/requirements_ubi9.txt /root/requirements_ubi.in
55
#
6-
annotated-types==0.5.0
6+
annotated-types==0.6.0
77
# via pydantic
88
autocommand==2.2.2
99
# via jaraco-text
1010
cheroot==10.0.0
1111
# via cherrypy
12-
cherrypy==18.8.0
12+
cherrypy==18.9.0
1313
# via -r /root/requirements_ubi.in
1414
inflect==7.0.0
1515
# via jaraco-text
16-
jaraco-collections==4.3.0
16+
jaraco-collections==5.0.0
1717
# via cherrypy
1818
jaraco-context==4.3.0
1919
# via jaraco-text
20-
jaraco-functools==3.8.0
20+
jaraco-functools==4.0.0
2121
# via
2222
# cheroot
2323
# jaraco-text
2424
# tempora
25-
jaraco-text==3.11.1
25+
jaraco-text==3.12.0
2626
# via jaraco-collections
27-
more-itertools==10.0.0
27+
more-itertools==10.2.0
2828
# via
2929
# cheroot
3030
# cherrypy
3131
# jaraco-functools
3232
# jaraco-text
3333
portend==3.2.0
3434
# via cherrypy
35-
pydantic==2.1.0
35+
pydantic==2.5.3
3636
# via inflect
37-
pydantic-core==2.4.0
37+
pydantic-core==2.14.6
3838
# via pydantic
39-
pytz==2023.3
39+
pytz==2023.3.post1
4040
# via tempora
4141
tempora==5.5.0
4242
# via portend
43-
typing-extensions==4.7.1
43+
typing-extensions==4.9.0
4444
# via
4545
# inflect
4646
# pydantic

0 commit comments

Comments
 (0)