Hello everyone! Been a minute since have had need to post, but I am recently finding myself wanting to do some custom dashboards now. I watched Lab #93, and a few others, and it seems easy enough, once I get a better handled on SWQL
I am attempting to create a simple KPI dashboard that will show the total number of Managed nodes based on the custom field "Team". Alot of gear is sperated betwen the NetOps and SrvOps teams, and i wanted to show that split in Orion.
Below is my basic query - thanks to General_Apathy for the jump start. What I need to do is do a count of nodes when the team = netops and different count on team = srvops, etc.
I can get the count here - its not a single number but its the right amount totoal. I am just not sure how to pull in the right custom fileds to get the team portion written. I have muddule my way through enough that i understand what a join does, just not sure how to write one properly.
SELECT COUNT(1) AS Count_Items, Status
FROM ORION.Nodes
JOIN Orion.NodesCustomProperties ON nodes.nodeid = NodesCustomProperties.nodeid
GROUP BY Nodes.Status