Which component is your question about?
Collectors
Performance Monitor Version
1.2.1
Is your question about how it works, or the results?
How the tool works
What's your question?
I couldn't find the LOGIN/USER definition for using Perf Mon without a sysadmin login (in other words a read only login). So far I managed to create a LOGIN/USER with the script below, but it didn't work in Azure SQL and in regular installs has issues with Jobs. Is it possible to add this information to the documentation?
The script is:
`USE [master]
GO
CREATE LOGIN [SQLServerPerfMon] WITH PASSWORD=N'xxxxxx', DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=ON
GRANT VIEW DATABASE STATE TO [SQLServerPerfMon]
GRANT VIEW SERVER STATE TO [SQLServerPerfMon]
USE [msdb]
CREATE USER [SQLServerPerfMon] FOR LOGIN [SQLServerPerfMon]
ALTER ROLE [SQLAgentReaderRole] ADD MEMBER [SQLServerPerfMon]
--added after reading job collector errors, still not working
GRANT SELECT ON dbo.sysjobhistory TO [SQLServerPerfMon]
GRANT SELECT ON dbo.syssessions TO [SQLServerPerfMon]
GO
`
Additional Context
No response
Which component is your question about?
Collectors
Performance Monitor Version
1.2.1
Is your question about how it works, or the results?
How the tool works
What's your question?
I couldn't find the LOGIN/USER definition for using Perf Mon without a sysadmin login (in other words a read only login). So far I managed to create a LOGIN/USER with the script below, but it didn't work in Azure SQL and in regular installs has issues with Jobs. Is it possible to add this information to the documentation?
The script is:
`USE [master]
GO
CREATE LOGIN [SQLServerPerfMon] WITH PASSWORD=N'xxxxxx', DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=ON
GRANT VIEW DATABASE STATE TO [SQLServerPerfMon]
GRANT VIEW SERVER STATE TO [SQLServerPerfMon]
USE [msdb]
CREATE USER [SQLServerPerfMon] FOR LOGIN [SQLServerPerfMon]
ALTER ROLE [SQLAgentReaderRole] ADD MEMBER [SQLServerPerfMon]
--added after reading job collector errors, still not working
GRANT SELECT ON dbo.sysjobhistory TO [SQLServerPerfMon]
GRANT SELECT ON dbo.syssessions TO [SQLServerPerfMon]
GO
`
Additional Context
No response