@@ -5,7 +5,7 @@ Azure LogAnalytics exporter
5
5
[ ![ DockerHub] ( https://img.shields.io/badge/DockerHub-webdevops%2Fazure--loganalytics--exporter-blue )] ( https://hub.docker.com/r/webdevops/azure-loganalytics-exporter/ )
6
6
[ ![ Quay.io] ( https://img.shields.io/badge/Quay.io-webdevops%2Fazure--loganalytics--exporter-blue )] ( https://quay.io/repository/webdevops/azure-loganalytics-exporter )
7
7
8
- Prometheus exporter for Azure LogAnalytics kusto queries with configurable fields and transformations.
8
+ Prometheus exporter for Azure LogAnalytics Kusto queries with configurable fields and transformations.
9
9
10
10
Usage
11
11
-----
@@ -18,8 +18,10 @@ Application Options:
18
18
--debug debug mode [$DEBUG]
19
19
-v, --verbose verbose mode [$VERBOSE]
20
20
--log.json Switch log output to json format [$LOG_JSON]
21
- --azure- environment= Azure environment name (default: AZUREPUBLICCLOUD) [$AZURE_ENVIRONMENT]
21
+ --azure. environment= Azure environment name (default: AZUREPUBLICCLOUD) [$AZURE_ENVIRONMENT]
22
22
--loganalytics.workspace= Loganalytics workspace IDs [$LOGANALYTICS_WORKSPACE]
23
+ --loganalytics.parallel= Specifies how many workspaces should be queried in parallel (default: 5)
24
+ [$LOGANALYTICS_PARALLEL]
23
25
-c, --config= Config path [$CONFIG]
24
26
--bind= Server address (default: :8080) [$SERVER_BIND]
25
27
@@ -40,13 +42,43 @@ HTTP Endpoints
40
42
| Endpoint | Description |
41
43
| --------------------------------| -------------------------------------------------------------------------------------|
42
44
| ` /metrics ` | Default prometheus golang metrics |
43
- | ` /probe ` | Execute loganalytics queries without set module name |
44
- | ` /probe?module=xzy ` | Execute loganalytics queries for module ` xzy ` |
45
- | ` /probe?module=xzy&cache=2m ` | Execute loganalytics queries for module ` xzy ` and enable caching for 2 minutes |
45
+ | ` /probe ` | Execute loganalytics queries against workspaces (set on commandline/env var) |
46
+ | ` /probe/workspace ` | Execute loganalytics queries against workspaces (defined as parameter) |
47
+ | ` /probe/subscription ` | Execute loganalytics queries against workspaces (using servicediscovery) |
48
+
49
+ HINT: parameters of type ` multiple ` can be either specified multiple times and/or splits multiple values by comma.
50
+
51
+ #### /probe parameters
52
+
53
+ | GET parameter | Default | Required | Multiple | Description |
54
+ | ------------------------| ---------------------------| ----------| ----------| ----------------------------------------------------------------------|
55
+ | ` module ` | | no | no | Filter queries by module name |
56
+ | ` cache ` | | no | no | Use of internal metrics caching (time.Duration) |
57
+ | ` parallel ` | ` $LOGANALYTICS_PARALLEL ` | no | no | Number (int) of how many workspaces can be queried at the same time |
58
+
59
+ #### /probe/workspace parameters
60
+
61
+ | GET parameter | Default | Required | Multiple | Description |
62
+ | ------------------------| ---------------------------| ----------| ----------| ----------------------------------------------------------------------|
63
+ | ` module ` | | no | no | Filter queries by module name |
64
+ | ` workspace ` | | ** yes** | yes | Workspace IDs which are probed |
65
+ | ` cache ` | | no | no | Use of internal metrics caching (time.Duration) |
66
+ | ` parallel ` | ` $LOGANALYTICS_PARALLEL ` | no | no | Number (int) of how many workspaces can be queried at the same time |
67
+
68
+ #### /probe/subscription parameters
69
+
70
+ | GET parameter | Default | Required | Multiple | Description |
71
+ | ------------------------| ---------------------------| ----------| ----------| ----------------------------------------------------------------------|
72
+ | ` module ` | | no | no | Filter queries by module name |
73
+ | ` subscription ` | | ** yes** | yes | Uses all workspaces inside subscription |
74
+ | ` cache ` | | no | no | Use of internal metrics caching (time.Duration) |
75
+ | ` parallel ` | ` $LOGANALYTICS_PARALLEL ` | no | no | Number (int) of how many workspaces can be queried at the same time |
46
76
47
77
Global metrics
48
78
--------------
49
79
80
+ available on ` /metrics `
81
+
50
82
| Metric | Description |
51
83
| --------------------------------------| --------------------------------------------------------------------------------|
52
84
| ` azure_loganalytics_query_time ` | Summary metric about query execution time (incl. all subqueries) |
0 commit comments