Azure / Azure/azure-libraries-for-java
Kubernetes Service metric "kube_node_status_condition" does not return time series data with filter on dimension "status" or "status2"
- Ngôn ngữ chính
- Java
- Star
- 97
- Fork
- 102
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
The following 4 metric dimensions are returned in the list metric definition call - _https://docs.microsoft.com/en-us/rest/api/monitor/metricdefinitions/list_
with
resourceUri = _/subscriptions/1248268d-051f-432a-8e63-e83a9d36e776/resourceGroups/aks-int-resource-group/providers/Microsoft.ContainerService/managedClusters/aks-int-cluster/_
> "dimensions": [
> {
> "value": "condition",
> "localizedValue": "Condition type represented in this metric"
> },
> {
> "value": "status",
> "localizedValue": "Status of the condition dimension (true/false)"
> },
> {
> "value": "status2",
> "localizedValue": "Status of the condition dimension (Ready/NotReady)"
> },
> {
> "value": "node",
> "localizedValue": "Node's name"
> }
But, the metrics list call doesn’t seem to return any timeseries values when queried with all the above dimensions:
REST call -
_https://docs.microsoft.com/en-us/rest/api/monitor/metrics/list_
with
**resourceUri** = _/subscriptions/1248268d-051f-432a-8e63-e83a9d36e776/resourceGroups/aks-int-resource-group/providers/Microsoft.ContainerService/managedClusters/aks-int-cluster/_
**metricnames**=_kube_node_status_condition_
**aggregation**=_Total,Average,Minimum,Maximum,Count_
**$filter**=_condition eq '*' and node eq '*' and status eq '*' and status2 eq '*'_
> {
> "cost": 0,
> "timespan": "2018-09-27T16:54:29Z/2018-09-27T17:54:29Z",
> "interval": "PT1M",
> "value": [
> {
> "id": "/subscriptions/1248268d-051f-432a-8e63-e83a9d36e776/resourceGroups/aks-int-resource-group/providers/Microsoft.ContainerService/managedClusters/aks-int-cluster/providers/Microsoft.Insights/metrics/kube_node_status_condition",
> "type": "Microsoft.Insights/metrics",
> "name": {
> "value": "kube_node_status_condition",
> "localizedValue": "Statuses for various node conditions"
> },
> "unit": "Count",
> "timeseries": []
> }
> ],
> "namespace": "Microsoft.ContainerService/managedClusters",
> "resourceregion": "eastus"
> }
The issue seems to be with dimensions **status** and **status2**
Azure doesn’t return anything when filtered with **$filter=status eq '\*' and status2 eq '\*'**
We expect this should return all time series with metadata **status** and **status2**
Also the dimension **status2** is not listed in _https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-supported-metrics_ , but is being returned in the REST API Call.
We need help to understand if **status** and **status2** are valid dimensions? If yes, is there a way we can get the time series data when filtered on these dimensions?
Let us know if more details are needed to investigate this. This is little critical for us, so any help is appreciated. Thanks.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với các endpoint REST định nghĩa metric/list và metrics/list của Azure Monitor được trích dẫn trong issue, sử dụng resource kube_node_status_condition cùng các bộ lọc condition, node, status và status2. So sánh các dimension được trả về và hành vi của chuỗi thời gian, sau đó ghi lại liệu status và status2 có hợp lệ hay không, cũng như response hoặc truy vấn được hỗ trợ nào sẽ được xem là cách giải quyết.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- azure, java, kubernetes
- Lĩnh vực
- cloud, observability
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100