Expand JSON Data from Microsoft Graph API in Grafana Infinity (UQL) #1133
-
I am using the Infinity plugin in Grafana to fetch Azure Entra ID Application Registrations via Microsoft Graph API. My goal is to display all secrets ( under "passwordCredentials" ) and their expiration dates in Grafana. However, I am encountering challenges accessing the nested value array and properly expanding the data using UQL. API Response
Getting this output: {
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#applications(displayName,passwordCredentials)",
"value": [
{
"displayName": "App Reg 1",
"passwordCredentials": [
{
"displayName": "mysecret",
"endDateTime": "2025-04-16T17:01:53.448Z",
"hint": "bHb"
},
{
"displayName": "mysecret2",
"endDateTime": "2025-05-23T14:51:02.4Z",
"hint": "agd"
}
]
},
{
"displayName": "Grafana Cloud Connector",
"passwordCredentials": [
{
"displayName": "abc123",
"endDateTime": "2026-11-27T13:54:51.094Z",
"hint": "UkI"
}
]
},
{
"displayName": "My App Reg 3",
"passwordCredentials": []
}
]
} Attempting queries like:
results in "error applying uql query".
returns as shown on the image, with "object, object" for the value. How can I process this correctly? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I suggest trying with backend parser and JSONata syntax in the root selector. That is pretty convenient and powerful. but still if you prefer UQL, https://grafana.com/docs/plugins/yesoreyeram-infinity-datasource/latest/query/uql/ have more documentaion ![]() |
Beta Was this translation helpful? Give feedback.
I suggest trying with backend parser and JSONata syntax in the root selector. That is pretty convenient and powerful.
but still if you prefer UQL, https://grafana.com/docs/plugins/yesoreyeram-infinity-datasource/latest/query/uql/ have more documentaion