File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change
1
+ '''
2
+ ##############################################################################
3
+ # Copyright 2021 IBM Corp.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ ##############################################################################
17
+
18
+ Created on Feb 17, 2021
19
+
20
+ @author: HWASSMAN
21
+ '''
22
+
23
+ __version__ = '6.1.1'
Original file line number Diff line number Diff line change 33
33
from queryHandler .QueryHandler import QueryHandler2 as QueryHandler
34
34
from queryHandler .Topo import Topo
35
35
from queryHandler import SensorConfig
36
+ from __version__ import __version__
36
37
from collections import defaultdict
37
38
from timeit import default_timer as timer
38
39
67
68
'ReceivAttrValues' : 'Received {}:{}' ,
68
69
'TimerInfo' : 'Processing {} took {} seconds' ,
69
70
'Query2port' : 'For better bridge performance multithreaded port {} will be used' ,
70
- 'CollectorConnInfo' : 'Connection to the collector server established successfully'
71
+ 'CollectorConnInfo' : 'Connection to the collector server established successfully' ,
72
+ 'BridgeVersionInfo' : 'IBM Spectrum Scale bridge for Grafana - Version: {}'
71
73
}
72
74
73
75
@@ -689,6 +691,8 @@ def main(argv):
689
691
690
692
# prepare metadata
691
693
try :
694
+ print ("\n " + MSG ['BridgeVersionInfo' ].format (__version__ ))
695
+ logger .info ("%s" , MSG ['BridgeVersionInfo' ].format (__version__ ))
692
696
validateCollectorConf (args , logger )
693
697
mdHandler = MetadataHandler (logger , args .server , args .serverPort )
694
698
print (MSG ['MetaSuccess' ])
You can’t perform that action at this time.
0 commit comments