Microsoft SQL Server 🔗
The Splunk Distribution of OpenTelemetry Collector uses the Smart Agent receiver with the Microsoft SQL Server monitor type to send metrics from Microsoft SQL Server instances.
Benefits 🔗
After you configure the integration, you can access these features:
View metrics. You can create your own custom dashboards, and most monitors provide built-in dashboards as well. For information about dashboards, see View dashboards in Splunk Observability Cloud.
View a data-driven visualization of the physical servers, virtual machines, AWS instances, and other resources in your environment that are visible to Infrastructure Monitoring. For information about navigators, see Use navigators in Splunk Infrastructure Monitoring.
Access the Metric Finder and search for metrics sent by the monitor. For information, see Search the Metric Finder and Metadata catalog.
Installation 🔗
Follow these steps to deploy this integration:
Deploy the Splunk Distribution of OpenTelemetry Collector to your host or container platform:
Configure the monitor, as described in the Configuration section.
Restart the Splunk Distribution of OpenTelemetry Collector.
Microsoft SQL installation 🔗
To use the integration, you need to create login credentials in the Microsoft SQL Server host. To create this login, follow these steps:
Log in as an administrator.
Start an SQL client.
Enter the following commands:
USE master;
GO
CREATE LOGIN [signalfxagent] WITH PASSWORD = '<YOUR PASSWORD HERE>';
GO
GRANT VIEW SERVER STATE TO [signalfxagent];
GO
GRANT VIEW ANY DEFINITION TO [signalfxagent];
GO
Configuration 🔗
To use this integration of a Smart Agent monitor with the Collector:
Include the Smart Agent receiver in your configuration file.
Add the monitor type to the Collector configuration, both in the receiver and pipelines sections.
Read more on how to Use Smart Agent monitors with the Collector.
See how to set up the Smart Agent receiver.
Learn about config options in Collector default configuration.
Example 🔗
To activate this integration, add the following to your Collector configuration:
receivers:
smartagent/sqlserver:
type: telegraf/sqlserver
... # Additional config
Next, add the monitor to the service.pipelines.metrics.receivers
section of your configuration file:
service:
pipelines:
metrics:
receivers: [smartagent/sqlserver]
Example: Microsoft SQL Server receiver 🔗
The following is an example of a Microsoft SQL Server receiver configuration:
receivers:
smartagent/sqlserver:
type: telegraf/sqserver
host: <host_name>
port: 1433
userID: <user_id>
password: <password>
appName: sqlserver
Configuration settings 🔗
The following table shows the configuration options for the Microsoft SQL Server monitor:
Option |
Required |
Type |
Description |
---|---|---|---|
|
yes |
|
|
|
yes |
|
|
|
no |
|
UserID used to access the SQL Server instance. |
|
no |
|
Password used to access the SQL Server instance. |
|
no |
|
The app name used by the monitor when connecting to the SQLServer. (default: |
|
no |
|
The version of queries to use when accessing the cluster. See the documentation for the Microsoft SQL Server Telegraf Plugin, provided by Influxdata. (default: |
|
no |
|
Whether the database is a Microsoft Azure database. (default: |
|
no |
|
Queries to exclude. Possible values are |
|
no |
|
Log level to use when accessing the database (default: |
Metrics 🔗
The following metrics are available for this integration:
Notes 🔗
To learn more about the available in Observability Cloud see Metric types.
In host-based subscription plans, default metrics are those metrics included in host-based subscriptions in Observability Cloud, such as host, container, or bundled metrics. Custom metrics are not provided by default and might be subject to charges. See Metric categories for more information.
In MTS-based subscription plans, all metrics are custom.
To add additional metrics, see how to configure
extraMetrics
in Add additional metrics.
Troubleshooting 🔗
If you are not able to see your data in Splunk Observability Cloud, try these tips:
Submit a case in the Splunk Support Portal.
Available to Splunk Observability Cloud customers
-
Available to Splunk Observability Cloud customers
Ask a question and get answers through community support at Splunk Answers.
Available to Splunk Observability Cloud customers and free trial users
Join the Splunk #observability user group Slack channel to communicate with customers, partners, and Splunk employees worldwide
Available to Splunk Observability Cloud customers and free trial users
To learn how to join, see Get Started with Splunk Community - Chat groups.
To learn about even more support options, see Splunk Customer Success.
TCP/IP is deactivated 🔗
In some Windows-based SQL Server instances, TCP/IP has been deactivated by default. You might encounter this in a Microsoft Azure service instance. If you see error messages similar to Cannot read handshake packet: read tcp: wsarecv: An existing connection was forcibly closed by the remote host.
, you need to explicitly activate TCP/IP for the instance.
Verify agent configurations are correct.
In your SQL Server instance, activate TCP/IP. To do this, select Start, then Administrative Tools, then Computer Management.
In the
Computer Management
sidebar, select Services and Applications, then SQL Server Configuration Manager, then SQL Server Network Configuration.Select Protocols for
<YOUR SQL SERVER NAME>
.In the protocol list, right-click the TCP/IP protocol and select Enable.