windowsservicereceiver

package module
v0.124.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

README

Windows Service Receiver

Status
Stability development: metrics
Unsupported Platforms darwin, linux
Distributions contrib
Issues Open issues Closed issues
Code Owners @pjanotti, @shalper2

The Windows Service Receiver is a receiver for scraping information about the state of services running on a Windows machine.

Getting Started

By default the Windows Service Receiver will attempt to identify and monitor the status of all specified services on the host machine.

An example of monitoring three services on a host:

windowsservice:
  collection_interval: <duration> # default = 1m
  include_services:
    - service1
    - service2
    - service3
    ...

The case where you wish to monitor all services present on a host machine, except for service3:

windowsservice:
  collection_interval: <duration> # default = 1m
  include_services:
  exclude_services:
    - service3
    ...

Documentation

Overview

Package windowsservice receiver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() receiver.Factory

Types

type Config

type Config struct {
	scraperhelper.ControllerConfig `mapstructure:",squash"`
	metadata.MetricsBuilderConfig  `mapstructure:",squash"`
	IncludeServices                []string `mapstructure:"include_services"` // user provided list of services to monitor with receiver
	ExcludeServices                []string `mapstructure:"exclude_services"` // user provided list of services to be excluded
}

Config defines configuration for windowsservice receiver.

func (*Config) Validate added in v0.123.0

func (cfg *Config) Validate() error

Validate checks the receiver configuration is valid

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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