sqlserverreceiver

package module
v0.87.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 9

README

Microsoft SQL Server Receiver

Status
Stability beta: metrics
Distributions contrib, observiq, sumo
Issues Open issues Closed issues
Code Owners @djaglowski, @StefanKurek

The sqlserver receiver grabs metrics about a Microsoft SQL Server instance using the Windows Performance Counters. Because of this, it is a Windows only receiver.

Make sure to run the collector as administrator in order to collect all performance counters for metrics.

Configuration

The following settings are optional:

  • collection_interval (default = 10s): The internal at which metrics should be emitted by this receiver.

To collect from a SQL Server with a named instance, both computer_name and instance_name are required. For a default SQL Server setup, these settings are optional.

  • computer_name (optional): The computer name identifies the SQL Server name or IP address of the computer being monitored.
  • instance_name (optional): The instance name identifies the specific SQL Server instance being monitored.

Example:

    receivers:
      sqlserver:
        collection_interval: 10s

When a named instance is used, a computer name and a instance name must be specified. Example with named instance:

    receivers:
      sqlserver:
        collection_interval: 10s
        computer_name: CustomServer
        instance_name: CustomInstance
        resource_attributes:
          sqlserver.computer.name:
            enabled: true
          sqlserver.instance.name:
            enabled: true

The full list of settings exposed for this receiver are documented here with detailed sample configurations here.

Metrics

Details about the metrics produced by this receiver can be found in documentation.md

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() receiver.Factory

NewFactory creates a factory for SQL Server receiver.

Types

type Config

type Config struct {
	scraperhelper.ScraperControllerSettings `mapstructure:",squash"`
	metadata.MetricsBuilderConfig           `mapstructure:",squash"`
	InstanceName                            string `mapstructure:"instance_name"`
	ComputerName                            string `mapstructure:"computer_name"`
}

Config defines configuration for a sqlserver receiver.

func (*Config) Validate added in v0.75.0

func (cfg *Config) Validate() error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL