From how I read it, you need to literally return 'metricColumn' - not sure why. So your query should read
SELECT 'metricColumn' ,count(loginstatus) status WHERE loginstatus='invalid'
I have checked my database, table and query. Even I have reinstalled my agent. But Still I cant access Query Service. Please reply me.