Skip to content

Commit

Permalink
Add new metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Neaj Morshad <[email protected]>
  • Loading branch information
Neaj-Morshad-101 committed Aug 29, 2024
1 parent d0a299f commit fcc43a2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions kubedb/mssql_standard.collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,24 @@ metrics:
SELECT DATEDIFF(second, sqlserver_start_time, GETUTCDATE()) AS uptime_seconds
FROM sys.dm_os_sys_info
- metric_name: sqlserver_ag_cluster_size
type: gauge
help: 'Number of active replicas in the SQL Server Availability Group.'
values: [active_replicas]
query: |
SELECT COUNT(*) AS active_replicas
FROM sys.dm_hadr_availability_replica_states
WHERE role_desc <> 'RESOLVING';
- metric_name: sqlserver_compilations_per_sec
type: gauge
help: 'Number of SQL compilations per second in SQL Server.'
values: [sql_compilations_per_sec]
query: |
SELECT cntr_value AS sql_compilations_per_sec
FROM sys.dm_os_performance_counters
WHERE counter_name = 'SQL Compilations/sec';
queries:
# Populates `mssql_io_stall` and `mssql_io_stall_total`
- query_name: mssql_io_stall
Expand Down

0 comments on commit fcc43a2

Please sign in to comment.