Hey all,
I'm in the process of configuring AppInsight for SQL monitoring on our SQL 2014 AAG. I've successfully applied the monitor, and it's polling correctly, but there's a problem.
Several of the databases hosted by this AAG have their replicated copies configured as passive and are not available to be queried. This is resulting in the monitor showing an overall unknown state.
Here's the error for the specific databases in the unknown state.
No valid data was received. The target database, '<name>', is participating in an availability group and is currently not accessible for queries. Either data movement is suspended or the availability replica is not enabled for read access. To allow read-only access to this and other databases in the availability group, enable read access to one or more secondary availability replicas in the group. For more information, see the ALTER AVAILABILITY GROUP statement in SQL Server Books Online.
Has anyone else run into this? I'd prefer to not modify those databases, if possible. Theoretically, their active copies should be getting monitored on the node where they're active.
Every option I consider runs into the same problem, where the option becomes an issue if the copy of that DB ever becomes active. Maybe just set the monitor not to report an unknown state somehow?
Ideas?
Thanks!