Documentation ¶
Overview ¶
Package servicediscovery contains the Service Discovery corecheck.
Package servicediscovery is a generated GoMock package.
Index ¶
Constants ¶
const (
// CheckName is the name of the check.
CheckName = "service_discovery"
)
Variables ¶
This section is empty.
Functions ¶
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
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.
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.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
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. |
testutil/instrumented2
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. |