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
Don't forget to pass valid url link to your Gradle Enterprise server:
14
+
10
15
11
16
```shell script
12
-
docker run -it --rm \
13
-
-p 8080:8080 \
14
-
-e APP_URL_LINK=http://localhost \
15
-
-e APP_PORT=8080 \
17
+
PORT=8080 ; docker run -it --rm \
18
+
-p ${PORT}:${PORT} \
19
+
-v "$(pwd)/":"/app/" \
20
+
-e APP_FILE_PATH=/app/urls.txt \
21
+
-e APP_PORT=${PORT} \
16
22
-e APP_CHECK_INTERVAL=60 \
17
23
-e LOG_LEVEL=DEBUG \
18
24
bissquit/gradle-server-exporter:latest
@@ -28,22 +34,50 @@ docker-compose up -d --build
28
34
29
35
### k8s
30
36
31
-
Use [k8s-handle](https://github.com/2gis/k8s-handle) to deploy exporter to k8s environment.
37
+
Use [k8s-handle](https://github.com/2gis/k8s-handle) to deploy exporter to k8s environment:
38
+
39
+
```shell script
40
+
k8s-handle apply -s env-name
41
+
```
32
42
33
43
Render templates without deployment:
34
44
35
45
```shell script
36
46
k8s-handle render -s env-name
37
47
```
38
48
39
-
Deploy:
40
-
41
-
```shell script
42
-
k8s-handle apply -s env-name
49
+
# Help
50
+
51
+
Exporter looks for the file contains url(s) to your Gradle Enterprise Servers. Each line is [well-formatted](https://validators.readthedocs.io/en/latest/#module-validators.url) url.
52
+
You may pass options both via command line arguments or environment variables:
53
+
54
+
|Command line argument|Environment variable|Description|
55
+
| ----------- | ----------- | ----------- |
56
+
|-h, --help|-|show help message|
57
+
|-f, --file|`APP_FILE_PATH`|Absolute path to file. Each line is url link (default: Empty string)|
58
+
|-p, --port|`APP_PORT`|Port to be listened (default: 8080)|
59
+
|-t, --time|`APP_CHECK_INTERVAL`|Default time range in seconds to check metrics (default: 60)|
60
+
|-|`LOG_LEVEL`|Log level based on Python [logging](https://docs.python.org/3/library/logging.html) module. expected values: DEBUG, INFO, WARNING, ERROR, CRITICAL (default: INFO)|
0 commit comments