MCPcopy Create free account

hub / github.com/awslabs/aws-cloudmap-prometheus-sd / functions

Functions24 in github.com/awslabs/aws-cloudmap-prometheus-sd

↓ 16 callersMethodString
()
pkg/discovery/discovery.go:30
↓ 6 callersFunctionsampleDiscovery
()
pkg/discovery/discovery_test.go:101
↓ 5 callersMethodcleanDeletedTargets
()
pkg/discovery/discovery.go:119
↓ 3 callersMethodprocessServiceInstances
(tgSourceSpec targetSourceSpec, dio *servicediscovery.DiscoverInstancesOutput)
pkg/discovery/discovery.go:201
↓ 1 callersFunctionNewAdapter
NewAdapter creates a new instance of Adapter.
pkg/adapter/adapter.go:167
↓ 1 callersFunctionNewDiscovery
(logger log.Logger, conf SDConfig)
pkg/discovery/discovery.go:51
↓ 1 callersMethodRun
Run starts a Discovery Manager and the custom service discovery implementation.
pkg/adapter/adapter.go:160
↓ 1 callersFunctionfingerprint
(group *targetgroup.Group)
pkg/adapter/adapter.go:39
↓ 1 callersFunctiongenerateTargetGroups
(allTargetGroups map[string][]*targetgroup.Group)
pkg/adapter/adapter.go:68
↓ 1 callersFunctionmapToArray
(m map[string]*customSD)
pkg/adapter/adapter.go:60
↓ 1 callersMethodprocessNamespace
(ctx context.Context, cloudmap *servicediscovery.ServiceDiscovery, ns *servicediscovery.NamespaceSummary)
pkg/discovery/discovery.go:148
↓ 1 callersMethodprocessService
(ctx context.Context, cloudmap *servicediscovery.ServiceDiscovery, ns *servicediscovery.NamespaceSummary, s *s
pkg/discovery/discovery.go:180
↓ 1 callersMethodrefresh
(ctx context.Context)
pkg/discovery/discovery.go:86
↓ 1 callersMethodrefreshTargetGroups
Parses incoming target groups updates. If the update contains changes to the target groups Adapter already knows about, or new target groups, we Marsh
pkg/adapter/adapter.go:102
↓ 1 callersMethodrunCustomSD
(ctx context.Context)
pkg/adapter/adapter.go:143
↓ 1 callersMethodwriteOutput
Writes JSON formatted targets to output file.
pkg/adapter/adapter.go:115
MethodRun
Note: you must implement this function for your discovery implementation as part of the Discoverer interface. Here you should query your SD for it's l
pkg/discovery/discovery.go:67
FunctionTestCleanDeletedTargets_WithDeletedTargets
(t *testing.T)
pkg/discovery/discovery_test.go:89
FunctionTestCleanDeletedTargets_WithFailedNamespaces
(t *testing.T)
pkg/discovery/discovery_test.go:77
FunctionTestCleanDeletedTargets_WithFailedSources
(t *testing.T)
pkg/discovery/discovery_test.go:65
FunctionTestCleanDeletedTargets_WithNoFailures
(t *testing.T)
pkg/discovery/discovery_test.go:54
FunctionTestProcessServiceInstances
(t *testing.T)
pkg/discovery/discovery_test.go:25
FunctionTestProcessServiceInstances_WithEmptyList
(t *testing.T)
pkg/discovery/discovery_test.go:47
Functionmain
()
main.go:26