servicediscovery

package
v0.0.0-...-a768f24 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package servicediscovery contains the Service Discovery corecheck.

Package servicediscovery is a generated GoMock package.

Index

Constants

View Source
const (
	// CheckName is the name of the check.
	CheckName = "service_discovery"
)

Variables

This section is empty.

Functions

func Factory

func Factory() optional.Option[func() check.Check]

Factory creates a new check factory

func GetServiceName

func GetServiceName(lang language.Language, ctx usm.DetectionContext) usm.ServiceMetadata

GetServiceName gets the service name based on the command line arguments and the list of environment variables.

Types

type Check

type Check struct {
	corechecks.CheckBase
	// contains filtered or unexported fields
}

Check reports discovered services.

func (*Check) Configure

func (c *Check) Configure(senderManager sender.SenderManager, _ uint64, instanceConfig, initConfig integration.Data, source string) error

Configure parses the check configuration and initializes the check

func (*Check) Interval

func (c *Check) Interval() time.Duration

Interval returns how often the check should run.

func (*Check) Run

func (c *Check) Run() error

Run executes the check.

type MockosImpl

type MockosImpl struct {
	// contains filtered or unexported fields
}

MockosImpl is a mock of osImpl interface.

func NewMockosImpl

func NewMockosImpl(ctrl *gomock.Controller) *MockosImpl

NewMockosImpl creates a new mock instance.

func (*MockosImpl) DiscoverServices

func (m *MockosImpl) DiscoverServices() (*discoveredServices, error)

DiscoverServices mocks base method.

func (*MockosImpl) EXPECT

func (m *MockosImpl) EXPECT() *MockosImplMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

type MockosImplMockRecorder

type MockosImplMockRecorder struct {
	// contains filtered or unexported fields
}

MockosImplMockRecorder is the mock recorder for MockosImpl.

func (*MockosImplMockRecorder) DiscoverServices

func (mr *MockosImplMockRecorder) DiscoverServices() *gomock.Call

DiscoverServices indicates an expected call of DiscoverServices.

type Mocktimer

type Mocktimer struct {
	// contains filtered or unexported fields
}

Mocktimer is a mock of timer interface.

func NewMocktimer

func NewMocktimer(ctrl *gomock.Controller) *Mocktimer

NewMocktimer creates a new mock instance.

func (*Mocktimer) EXPECT

func (m *Mocktimer) EXPECT() *MocktimerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Mocktimer) Now

func (m *Mocktimer) Now() time.Time

Now mocks base method.

type MocktimerMockRecorder

type MocktimerMockRecorder struct {
	// contains filtered or unexported fields
}

MocktimerMockRecorder is the mock recorder for Mocktimer.

func (*MocktimerMockRecorder) Now

func (mr *MocktimerMockRecorder) Now() *gomock.Call

Now indicates an expected call of Now.

type ServiceMetadata

type ServiceMetadata struct {
	Name               string
	Language           string
	Type               string
	APMInstrumentation string
}

ServiceMetadata stores metadata about a service.

Directories

Path Synopsis
apm
Package apm provides functionality to detect the type of APM instrumentation a service is using.
Package apm provides functionality to detect the type of APM instrumentation a service is using.
testutil/instrumented
Package main is a go application which use dd-trace-go, in order to test static APM instrumentation detection.
Package main is a go application which use dd-trace-go, in order to test static APM instrumentation detection.
Package envs provides target environment variables of interest.
Package envs provides target environment variables of interest.
Package language provides functionality to detect the programming language for a given process.
Package language provides functionality to detect the programming language for a given process.
reader
Package reader provides utils around io.Reader.
Package reader provides utils around io.Reader.
Package model contains types for service discovery.
Package model contains types for service discovery.
Package module implements a system-probe Module interface for the discovery component.
Package module implements a system-probe Module interface for the discovery component.
testutil/fake_server
Package main is a simple TCP server which accepts any command line arguments, in order to test service discovery which uses the command line for detection.
Package main is a simple TCP server which accepts any command line arguments, in order to test service discovery which uses the command line for detection.
Package servicetype provides functionality to detect the service type for a given process.
Package servicetype provides functionality to detect the service type for a given process.
Package usm provides functionality to detect the most appropriate service name for a process.
Package usm provides functionality to detect the most appropriate service name for a process.

Jump to

Keyboard shortcuts

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