Direct SQL Server Queries

Hello all!

I'm trying to get the ingress and egress traffic from specific links to add real time data into Grafana. As far as I know, to get the information I am looking for I have to query the SQL Server database directly. Any examples on a MSSQL query that does this?