-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathmssql-config.yml.sample
52 lines (43 loc) · 2.5 KB
/
mssql-config.yml.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
integrations:
- name: nri-mssql
env:
HOSTNAME: <Host name or IP address of the SQl Server>
USERNAME: <Microsoft SQL Server connection user name>
PASSWORD: <Microsoft SQL Server connection password>
# Both port and instance can be omitted to use a default port of 1433
PORT: <Microsoft SQL Server port to connect to. Only needed when instance not specified>
# EXTRA_CONNECTION_URL_ARGS: ""
# Only use instance instead of port if SQL Browser is enabled
INSTANCE: <The Microsoft SQL Server instance to connect to. Do not supply port if this is specified>
ENABLE_SSL: <true or false. Indicates if SSL encryption should be used>
TRUST_SERVER_CERTIFICATE: <true or false. If true server certificate is not verified for SSL. If false certificate will be verified against supplied certificate>
CERTIFICATE_LOCATION: <Location of the SSL Certificate. Do not specify if trust_server_certificate is set to true>
TIMEOUT: <Timeout in seconds for a single SQL Query Execution. Set 0 for no timeout>
# ENABLE_BUFFER_METRICS: true
# ENABLE_DATABASE_RESERVE_METRICS: true
# ENABLE_DISK_METRICS_IN_BYTES: true
# YAML configuration with one or more SQL queries to collect custom metrics
# CUSTOM_METRICS_CONFIG: ""
# A SQL query to collect custom metrics. Query results 'metric_name', 'metric_value', and 'metric_type' have special meanings
# CUSTOM_METRICS_QUERY: >-
# SELECT
# 'instance_buffer_pool_size' AS metric_name,
# Count_big(*) * (8*1024) AS metric_value,
# 'gauge' as metric_type,
# database_id
# FROM sys.dm_os_buffer_descriptors WITH (nolock)
# GROUP BY database_id
# True is query monitoring should be enabled - defaults to false
# ENABLE_QUERY_MONITORING : "false"
# Threshold in milliseconds for query response time. If response time exceeds this threshold, the query will be considered slow.
# QUERY_MONITORING_RESPONSE_TIME_THRESHOLD : "500"
# Query count limit for fetching grouped slow query, wait query, blocking sessions and execution plan query performance metrics in each FETCH_INTERVAL
# QUERY_MONITORING_COUNT_THRESHOLD : "20"
# Interval in seconds for fetching grouped slow queries; Should always be same as mysql-config interval.
# QUERY_MONITORING_FETCH_INTERVAL : "15"
interval: 15s
labels:
env: production
role: mssql
# db_hostname: my-custom-hostname # useful to filter in dashboards, especially in multi-server environments.
inventory_source: config/mssql