Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI loads blank page when metrics data is null #1683

Closed
swaroopar opened this issue Jun 4, 2024 · 2 comments
Closed

UI loads blank page when metrics data is null #1683

swaroopar opened this issue Jun 4, 2024 · 2 comments
Assignees
Labels
Accepted Issues that have been accepted and planned bug Something isn't working UI Issues related to Xpanse UI

Comments

@swaroopar
Copy link
Contributor

currently when metrics data is null , the UI component crashes and we see an empty page.

image

instead, we must show an empty graph.

image

[
    {
        "name": "cpu_usage",
        "description": null,
        "type": "gauge",
        "monitorResourceType": "cpu",
        "unit": "percentage",
        "labels": {
            "name": "kafka-zookeeper-f0a989a7",
            "id": "ddde36a9-e7c3-4c14-9d3a-d81c2beda963"
        },
        "metrics": null
    },
    {
        "name": "cpu_usage",
        "description": null,
        "type": "gauge",
        "monitorResourceType": "cpu",
        "unit": "percentage",
        "labels": {
            "name": "kafka-broker-f0a989a7-2",
            "id": "311874f8-71e5-4ffe-902b-5e67804928cf"
        },
        "metrics": null
    },
    {
        "name": "cpu_usage",
        "description": null,
        "type": "gauge",
        "monitorResourceType": "cpu",
        "unit": "percentage",
        "labels": {
            "name": "kafka-broker-f0a989a7-0",
            "id": "9292692f-ce1f-4cbe-bb8f-c1a68770f56c"
        },
        "metrics": null
    },
    {
        "name": "cpu_usage",
        "description": null,
        "type": "gauge",
        "monitorResourceType": "cpu",
        "unit": "percentage",
        "labels": {
            "name": "kafka-broker-f0a989a7-1",
            "id": "493ef255-ae75-42a7-a749-ad673e052680"
        },
        "metrics": null
    }
]
@swaroopar swaroopar added bug Something isn't working UI Issues related to Xpanse UI Accepted Issues that have been accepted and planned labels Jun 4, 2024
@swaroopar swaroopar added this to the Spring 062024_1 milestone Jun 4, 2024
@Alice1319
Copy link
Contributor

I'll take this.

@swaroopar
Copy link
Contributor Author

@WangLiNaruto has tried his best to reproduce this issue but it was not possible. the graph was working fine when the metrics is null.

Will close this ticket for now and open a new bug if the same issue is observed again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issues that have been accepted and planned bug Something isn't working UI Issues related to Xpanse UI
Projects
Status: Done
Development

No branches or pull requests

2 participants