Grafana Dashboard + collector mssql_availability_groups #1060
Replies: 2 comments 1 reply
|
Hey @arindamg94, All Grafana dashboards have been contributed by the users. I'm happy to assist in debugging it on the sql_exporter side but I'm not affiliated with Grafana. The best way to debug it usually:
Please share more context (but thanks for the configs! 😃), I'm happy to help. |
|
Thank you for making this awesome repo. I have done plenty of works with sql-exporters for mysql and postgres, but was lacking something for mssql, so I am trying to use this repo as much as possible. Okay, let's start with the mssql_availability_groups collector. The query from this repo is: SELECT
ag.name as ag_name,
ar.replica_server_name,
rs.synchronization_state_desc as synchronization_state,
CASE WHEN ar.replica_server_name = @@SERVERNAME
AND rs.role_desc = 'PRIMARY' THEN 1 ELSE 0 END as is_primary_replica
FROM sys.dm_hadr_availability_replica_states rs
JOIN sys.availability_replicas ar ON rs.replica_id = ar.replica_id
JOIN sys.availability_groups ag ON ag.group_id = ar.group_id;It gives the following error: Msg 207, Level 16, State 1, Line 4
Invalid column name 'synchronization_state_desc'.I am running Microsoft SQL Server 2022 (RTM-CU25-GDR) (KB5101347) - 16.0.4262.2 (X64) Jun 18 2026 14:30:08 Copyright (C) 2022 Microsoft Corporation Enterprise Edition (64-bit) on Windows Server 2022 Standard 10.0 (Build 20348: ) (Hypervisor) What are the SQL-versons this repo's query support? :) |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have a little trouble integrating the docker-setup with Grafana Dashboard. I am using this repo, and managed to get things up and running.
But I was wondering if anyone has an updated Grafana Dashboard as the one provided in the documentation example is not fitted (up to date using Prometheus). Also, does anyone know why mssql_availability_groups (the one provided in the documentation, Monitor Always On Availability Groups) is not working.. I had to use GTP to change it... Which mssql-servers are it supported for?
All help is appreciated to become better in this field :D
My whole setup is below
docker-compose.yml
/etc/prometheus/prometheus-mssql.yml
/etc/sql-exporter/burningalchemist_mssql_availability_groups.collector.yml
/etc/sql-exporter/burningalchemist_mssql_standard.collector.yml
(As provided in the GitHub repo – copy & pasted)
/etc/sql-exporter/burningalchemist_sql_exporter.yml
All reactions