27 Feb 2025 11:21 PM - edited 28 Feb 2025 12:26 PM
I am really stuck - Trying to create a filter for :
dt.entity.cloud_application
This is the query that I'm trying to apply the filter for cloud application to. This query returns all apps within a management zone. Trying to filter by a single app or a list of apps.
url = 'https://xxxxxx/e/xxxxx/api/v2/metrics/query?metricSelector=' \
'(builtin:kubernetes.pods:last:splitBy("dt.entity.cloud_application"):sum:sort(value(avg,descending))):' \
'names:fold(auto)&from=1739297079132&to=1739304279132&mzName=mzId(MBF)'
Can someone please provide me with the proper syntax for this API request?
Solved! Go to Solution.
28 Feb 2025 09:11 AM
try without quotes
https://xxxxxx/e/xxxxx/api/v2/metrics/query?metricSelector=(builtin:kubernetes.pods:last:splitBy("dt.entity.cloud_application"):sum:sort(value(avg,descending))):names:fold(auto)&from=1739297079132&to=1739304279132&mzName=mzId(MBF)
28 Feb 2025 12:27 PM
Sorry about that, my question wasn't clear. I fixed that. What I'm looking for is a query where I can specify one or more apps.
21 May 2025 10:06 AM
Hey @CrazyHarry , did you manage to find the solution to your problem? If so, it would be amazing if you've shared it with the rest of the Community! If not, let me know, and I'll look for some further assistance 😊
21 May 2025 05:15 PM
Here is the solution: