|
3 | 3 | [](https://github.com/webdevops/kube-bootstrap-token-manager/blob/master/LICENSE) |
4 | 4 | [](https://hub.docker.com/r/webdevops/kube-bootstrap-token-manager/) |
5 | 5 | [](https://quay.io/repository/webdevops/kube-bootstrap-token-manager) |
| 6 | +[](https://artifacthub.io/packages/search?repo=kube-bootstrap-token-manager) |
6 | 7 |
|
7 | 8 | Manager for Node bootstrap tokens for Kubernetes. |
8 | 9 |
|
@@ -64,6 +65,40 @@ for Azure API authentication (using ENV vars) see https://docs.microsoft.com/en- |
64 | 65 | | `bootstraptoken_sync_time` | Timestamp of last sync | |
65 | 66 | | `bootstraptoken_sync_count` | Counter of sync | |
66 | 67 |
|
| 68 | +### AzureTracing metrics |
| 69 | + |
| 70 | +(with 22.2.0 and later) |
| 71 | + |
| 72 | +Azuretracing metrics collects latency and latency from azure-sdk-for-go and creates metrics and is controllable using |
| 73 | +environment variables (eg. setting buckets, disabling metrics or disable autoreset). |
| 74 | + |
| 75 | +| Metric | Description | |
| 76 | +|------------------------------------------|----------------------------------------------------------------------------------------| |
| 77 | +| `azurerm_api_ratelimit` | Azure ratelimit metrics (only on /metrics, resets after query due to limited validity) | |
| 78 | +| `azurerm_api_request_*` | Azure request count and latency as histogram | |
| 79 | + |
| 80 | +#### Settings |
| 81 | + |
| 82 | +| Environment variable | Example | Description | |
| 83 | +|------------------------------------------|------------------------------------|----------------------------------------------------------------| |
| 84 | +| `METRIC_AZURERM_API_REQUEST_BUCKETS` | `1, 2.5, 5, 10, 30, 60, 90, 120` | Sets buckets for `azurerm_api_request` histogram metric | |
| 85 | +| `METRIC_AZURERM_API_REQUEST_ENABLE` | `false` | Enables/disables `azurerm_api_request_*` metric | |
| 86 | +| `METRIC_AZURERM_API_REQUEST_LABELS` | `apiEndpoint, method, statusCode` | Controls labels of `azurerm_api_request_*` metric | |
| 87 | +| `METRIC_AZURERM_API_RATELIMIT_ENABLE` | `false` | Enables/disables `azurerm_api_ratelimit` metric | |
| 88 | +| `METRIC_AZURERM_API_RATELIMIT_AUTORESET` | `false` | Enables/disables `azurerm_api_ratelimit` autoreset after fetch | |
| 89 | + |
| 90 | + |
| 91 | +| `azurerm_api_request` label | Status | Description | |
| 92 | +|-----------------------------|--------------------|----------------------------------------------------------------------------------------------------------| |
| 93 | +| `apiEndpoint` | enabled by default | hostname of endpoint (max 3 parts) | |
| 94 | +| `routingRegion` | enabled by default | detected region for API call, either routing region from Azure Management API or Azure resource location | |
| 95 | +| `subscriptionID` | enabled by default | detected subscriptionID | |
| 96 | +| `tenantID` | enabled by default | detected tenantID (extracted from jwt auth token) | |
| 97 | +| `resourceProvider` | enabled by default | detected Azure Management API provider | |
| 98 | +| `method` | enabled by default | HTTP method | |
| 99 | +| `statusCode` | enabled by default | HTTP status code | |
| 100 | + |
| 101 | + |
67 | 102 | ## Kubernetes deployment |
68 | 103 |
|
69 | 104 | see [deployment](/deployment) |
0 commit comments