`There was an error getting dashboard validation warnings information.` in Kubernetes clusters Health
It happends in project's Infrastructure > Kubernetes clusters > Health
.
But in Monitor > Metrics
, everything goes well.
I found some difference:
For Infrastructure > Kubernetes clusters > Health
:
Payloads:
[{
"operationName": "getDashboardValidationWarnings",
"variables": {
"projectPath": "my/project",
"dashboardPath": "my/project/-/clusters/2"
},
"query": "query getDashboardValidationWarnings($projectPath: ID!, $environmentName: String, $dashboardPath: String!) {\n project(fullPath: $projectPath) {\n id\n environments(name: $environmentName) {\n nodes {\n id\n name\n metricsDashboard(path: $dashboardPath) {\n path\n schemaValidationWarnings\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n}\n"
}]
Response:
[{
"data": {
"project": {
"id": "gid://gitlab/Project/5",
"environments": {
"nodes": [{
"id": "gid://gitlab/Environment/3",
"name": "production",
"metricsDashboard": null,
"__typename": "Environment"
}],
"__typename": "EnvironmentConnection"
},
"__typename": "Project"
}
}
}]
For Monitor > Metrics
:
Payloads:
[{
"operationName": "getDashboardValidationWarnings",
"variables": {
"projectPath": "my/project",
"environmentName": "production",
"dashboardPath": "config/prometheus/common_metrics.yml"
},
"query": "query getDashboardValidationWarnings($projectPath: ID!, $environmentName: String, $dashboardPath: String!) {\n project(fullPath: $projectPath) {\n id\n environments(name: $environmentName) {\n nodes {\n id\n name\n metricsDashboard(path: $dashboardPath) {\n path\n schemaValidationWarnings\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n}\n"
}]
Response:
[{
"data": {
"project": {
"id": "gid://gitlab/Project/5",
"environments": {
"nodes": [{
"id": "gid://gitlab/Environment/3",
"name": "production",
"metricsDashboard": {
"path": "config/prometheus/common_metrics.yml",
"schemaValidationWarnings": null,
"__typename": "MetricsDashboard"
},
"__typename": "Environment"
}],
"__typename": "EnvironmentConnection"
},
"__typename": "Project"
}
}
}]
In the Health
page, the payloads's variables haven't environmentName
.
And then I found in Health
page, getEnvironments
> variables
> projectPath
is empty:
Payloads:
[{
"operationName": "getEnvironments",
"variables": {
"projectPath": "",
"search": "",
"states": ["available"]
},
"query": "query getEnvironments($projectPath: ID!, $search: String, $states: [String!]) {\n project(fullPath: $projectPath) {\n id\n data: environments(search: $search, states: $states) {\n environments: nodes {\n name\n id\n __typename\n }\n __typename\n }\n __typename\n }\n}\n"
}, {
"operationName": "getAnnotations",
"variables": {
"projectPath": "",
"dashboardPath": "my/projecta/-/clusters/3",
"startingFrom": "2022-03-11T18:34:58.487Z"
},
"query": "query getAnnotations($projectPath: ID!, $environmentName: String, $dashboardPath: String!, $startingFrom: Time!) {\n project(fullPath: $projectPath) {\n id\n environments(name: $environmentName) {\n nodes {\n id\n name\n metricsDashboard(path: $dashboardPath) {\n annotations(from: $startingFrom) {\n nodes {\n id\n description\n startingAt\n endingAt\n panelId\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n}\n"
}]
Response:
[{
"data": {
"project": null
}
}, {
"data": {
"project": null
}
}]
# rpm -qa | grep gitlab
gitlab-ce-14.8.2-ce.0.el8.x86_64
gitlab-runner-14.8.2-1.x86_64
Edited by gotounix