@@ -7,6 +7,9 @@ Azure LogAnalytics exporter
77
88Prometheus exporter for Azure LogAnalytics Kusto queries with configurable fields and transformations.
99
10+ ` azure-loganalytics-exporter ` can query configured workspaces or all workspaces in one or multiple subscriptions.
11+ The exporter can also cache metrics and servicediscovery information to reduce requests against workspaces and Azure API.
12+
1013Usage
1114-----
1215
@@ -15,18 +18,20 @@ Usage:
1518 azure-loganalytics-exporter [OPTIONS]
1619
1720Application Options:
18- --debug debug mode [$DEBUG]
19- -v, --verbose verbose mode [$VERBOSE]
20- --log.json Switch log output to json format [$LOG_JSON]
21- --azure.environment= Azure environment name (default: AZUREPUBLICCLOUD) [$AZURE_ENVIRONMENT]
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]
25- -c, --config= Config path [$CONFIG]
26- --bind= Server address (default: :8080) [$SERVER_BIND]
21+ --debug debug mode [$DEBUG]
22+ -v, --verbose verbose mode [$VERBOSE]
23+ --log.json Switch log output to json format [$LOG_JSON]
24+ --azure.environment= Azure environment name (default: AZUREPUBLICCLOUD) [$AZURE_ENVIRONMENT]
25+ --azure.servicediscovery.cache= Duration for caching Azure ServiceDiscovery of workspaces to reduce API
26+ calls (time.Duration) (default: 30m) [$AZURE_SERVICEDISCOVERY_CACHE]
27+ --loganalytics.workspace= Loganalytics workspace IDs [$LOGANALYTICS_WORKSPACE]
28+ --loganalytics.parallel= Specifies how many workspaces should be queried in parallel (default: 5)
29+ [$LOGANALYTICS_PARALLEL]
30+ -c, --config= Config path [$CONFIG]
31+ --bind= Server address (default: :8080) [$SERVER_BIND]
2732
2833Help Options:
29- -h, --help Show this help message
34+ -h, --help Show this help message
3035```
3136
3237for Azure API authentication (using ENV vars) see https://github.com/Azure/azure-sdk-for-go#authentication
@@ -50,6 +55,8 @@ HINT: parameters of type `multiple` can be either specified multiple times and/o
5055
5156#### /probe parameters
5257
58+ uses predefined workspace list defined as parameter/environment variable on startup
59+
5360| GET parameter | Default | Required | Multiple | Description |
5461| ------------------------| ---------------------------| ----------| ----------| ----------------------------------------------------------------------|
5562| ` module ` | | no | no | Filter queries by module name |
@@ -58,6 +65,8 @@ HINT: parameters of type `multiple` can be either specified multiple times and/o
5865
5966#### /probe/workspace parameters
6067
68+ uses dynamically passed workspaces via HTTP query parameter
69+
6170| GET parameter | Default | Required | Multiple | Description |
6271| ------------------------| ---------------------------| ----------| ----------| ----------------------------------------------------------------------|
6372| ` module ` | | no | no | Filter queries by module name |
@@ -67,6 +76,8 @@ HINT: parameters of type `multiple` can be either specified multiple times and/o
6776
6877#### /probe/subscription parameters
6978
79+ uses Azure service discovery to find all workspaces in one or multiple subscriptions
80+
7081| GET parameter | Default | Required | Multiple | Description |
7182| ------------------------| ---------------------------| ----------| ----------| ----------------------------------------------------------------------|
7283| ` module ` | | no | no | Filter queries by module name |
@@ -79,11 +90,13 @@ Global metrics
7990
8091available on ` /metrics `
8192
82- | Metric | Description |
83- | --------------------------------------| --------------------------------------------------------------------------------|
84- | ` azure_loganalytics_query_time ` | Summary metric about query execution time (incl. all subqueries) |
85- | ` azure_loganalytics_query_results ` | Number of results from query |
86- | ` azure_loganalytics_query_requests ` | Count of requests (eg paged subqueries) per query |
93+ | Metric | Description |
94+ | ---------------------------------------------| --------------------------------------------------------------------------------|
95+ | ` azure_loganalytics_status ` | Status if query was successfull (per workspace, module, metric) |
96+ | ` azure_loganalytics_last_query_successfull ` | Timestamp of last successfull query (per workspace, module, metric) |
97+ | ` azure_loganalytics_query_time ` | Summary metric about query execution time (incl. all subqueries) |
98+ | ` azure_loganalytics_query_results ` | Number of results from query |
99+ | ` azure_loganalytics_query_requests ` | Count of requests (eg paged subqueries) per query |
87100
88101
89102Examples
0 commit comments