@@ -94,7 +94,8 @@ available on `/metrics`
94
94
| ` azure_loganalytics_query_results ` | Number of results from query |
95
95
| ` azure_loganalytics_query_requests ` | Count of requests (eg paged subqueries) per query |
96
96
97
- ### Azuretracing metrics
97
+
98
+ ### AzureTracing metrics
98
99
99
100
(with 22.2.0 and later)
100
101
@@ -106,12 +107,26 @@ environment variables (eg. setting buckets, disabling metrics or disable autores
106
107
| ` azurerm_api_ratelimit ` | Azure ratelimit metrics (only on /metrics, resets after query due to limited validity) |
107
108
| ` azurerm_api_request_* ` | Azure request count and latency as histogram |
108
109
109
- | Environment variable | Example | Description |
110
- | ------------------------------------------| ----------------------------------| ----------------------------------------------------------|
111
- | ` METRIC_AZURERM_API_REQUEST_BUCKETS ` | ` 1, 2.5, 5, 10, 30, 60, 90, 120 ` | Sets buckets for ` azurerm_api_request ` histogram metric |
112
- | ` METRIC_AZURERM_API_REQUEST_DISABLE ` | ` false ` | Disables ` azurerm_api_request_* ` metric |
113
- | ` METRIC_AZURERM_API_RATELIMIT_DISABLE ` | ` false ` | Disables ` azurerm_api_ratelimit ` metric |
114
- | ` METRIC_AZURERM_API_RATELIMIT_AUTORESET ` | ` false ` | Disables ` azurerm_api_ratelimit ` autoreset after fetch |
110
+ #### Settings
111
+
112
+ | Environment variable | Example | Description |
113
+ | ------------------------------------------| ------------------------------------| ----------------------------------------------------------------|
114
+ | ` METRIC_AZURERM_API_REQUEST_BUCKETS ` | ` 1, 2.5, 5, 10, 30, 60, 90, 120 ` | Sets buckets for ` azurerm_api_request ` histogram metric |
115
+ | ` METRIC_AZURERM_API_REQUEST_ENABLE ` | ` false ` | Enables/disables ` azurerm_api_request_* ` metric |
116
+ | ` METRIC_AZURERM_API_REQUEST_LABELS ` | ` apiEndpoint, method, statusCode ` | Controls labels of ` azurerm_api_request_* ` metric |
117
+ | ` METRIC_AZURERM_API_RATELIMIT_ENABLE ` | ` false ` | Enables/disables ` azurerm_api_ratelimit ` metric |
118
+ | ` METRIC_AZURERM_API_RATELIMIT_AUTORESET ` | ` false ` | Enables/disables ` azurerm_api_ratelimit ` autoreset after fetch |
119
+
120
+
121
+ | ` azurerm_api_request ` label | Status | Description |
122
+ | -----------------------------| --------------------| ----------------------------------------------------------------------------------------------------------|
123
+ | ` apiEndpoint ` | enabled by default | hostname of endpoint (max 3 parts) |
124
+ | ` routingRegion ` | enabled by default | detected region for API call, either routing region from Azure Management API or Azure resource location |
125
+ | ` subscriptionID ` | enabled by default | detected subscriptionID |
126
+ | ` tenantID ` | enabled by default | detected tenantID (extracted from jwt auth token) |
127
+ | ` resourceProvider ` | enabled by default | detected Azure Management API provider |
128
+ | ` method ` | enabled by default | HTTP method |
129
+ | ` statusCode ` | enabled by default | HTTP status code |
115
130
116
131
## Examples
117
132
0 commit comments