This is a known issue impacting NSX Application Platform 4.1.1.
Workaround:
Always specific start_time and end_time when querying 'is_status' metrics in time-series API.
Step 1. Get the current epoch time from
https://www.epochconverter.com/.
Step 2. Run the metrics API and provide start_time and end_time for particular key and resource_type.
Let's say the current epoch time is 1690966500(Wednesday, 2 August 2023 08:55:00 GMT) then an example request to get last 12 hour status metrics would be:
POST https://<mgr-ip>/napp/api/v1/metrics/data
{
"start_time": 1690923300, // Tuesday, 1 August 2023 20:55:00 GMT
"end_time": 1690966500, // Wednesday, 2 August 2023 08:55:00 GMT
"resource_type":"PolicyEdgeNode",
"resource_ids":["<intent-path>"],
"keys":["tn.admin_status"]]
}