This repository was archived by the owner on Feb 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
3
+ echo " Setting VERSION='${CI_COMMIT_REF_NAME} -${CI_COMMIT_SHORT_SHA} ' in src/constants.py"
4
+ echo " VERSION = '${CI_COMMIT_REF_NAME} -${CI_COMMIT_SHORT_SHA} '" >> src/constants.py
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+ """ Constants declarations """
4
+
5
+ VERSION = None
Original file line number Diff line number Diff line change 10
10
import pygelf
11
11
from prometheus_client import start_http_server
12
12
from prometheus_client .core import REGISTRY , GaugeMetricFamily
13
+ import constants
13
14
14
15
LOG = logging .getLogger (__name__ )
15
16
logging .basicConfig (
@@ -163,7 +164,8 @@ def collect(self):
163
164
if __name__ == '__main__' :
164
165
configure_logging ()
165
166
PORT = int (os .environ .get ('PORT' , 9308 ))
166
- LOG .info ("Starting on port {}" .format (PORT ))
167
+ # pylint: disable=no-member
168
+ LOG .info ("Starting etherscan-exporter {} on port {}" .format (constants .VERSION , PORT ))
167
169
REGISTRY .register (EtherscanCollector ())
168
170
start_http_server (PORT )
169
171
while True :
You can’t perform that action at this time.
0 commit comments