Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awslabs/aws-cloudmap-prometheus-sd
/ functions
Functions
24 in github.com/awslabs/aws-cloudmap-prometheus-sd
⨍
Functions
24
◇
Types & classes
5
↓ 16 callers
Method
String
()
pkg/discovery/discovery.go:30
↓ 6 callers
Function
sampleDiscovery
()
pkg/discovery/discovery_test.go:101
↓ 5 callers
Method
cleanDeletedTargets
()
pkg/discovery/discovery.go:119
↓ 3 callers
Method
processServiceInstances
(tgSourceSpec targetSourceSpec, dio *servicediscovery.DiscoverInstancesOutput)
pkg/discovery/discovery.go:201
↓ 1 callers
Function
NewAdapter
NewAdapter creates a new instance of Adapter.
pkg/adapter/adapter.go:167
↓ 1 callers
Function
NewDiscovery
(logger log.Logger, conf SDConfig)
pkg/discovery/discovery.go:51
↓ 1 callers
Method
Run
Run starts a Discovery Manager and the custom service discovery implementation.
pkg/adapter/adapter.go:160
↓ 1 callers
Function
fingerprint
(group *targetgroup.Group)
pkg/adapter/adapter.go:39
↓ 1 callers
Function
generateTargetGroups
(allTargetGroups map[string][]*targetgroup.Group)
pkg/adapter/adapter.go:68
↓ 1 callers
Function
mapToArray
(m map[string]*customSD)
pkg/adapter/adapter.go:60
↓ 1 callers
Method
processNamespace
(ctx context.Context, cloudmap *servicediscovery.ServiceDiscovery, ns *servicediscovery.NamespaceSummary)
pkg/discovery/discovery.go:148
↓ 1 callers
Method
processService
(ctx context.Context, cloudmap *servicediscovery.ServiceDiscovery, ns *servicediscovery.NamespaceSummary, s *s
pkg/discovery/discovery.go:180
↓ 1 callers
Method
refresh
(ctx context.Context)
pkg/discovery/discovery.go:86
↓ 1 callers
Method
refreshTargetGroups
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 callers
Method
runCustomSD
(ctx context.Context)
pkg/adapter/adapter.go:143
↓ 1 callers
Method
writeOutput
Writes JSON formatted targets to output file.
pkg/adapter/adapter.go:115
Method
Run
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
Function
TestCleanDeletedTargets_WithDeletedTargets
(t *testing.T)
pkg/discovery/discovery_test.go:89
Function
TestCleanDeletedTargets_WithFailedNamespaces
(t *testing.T)
pkg/discovery/discovery_test.go:77
Function
TestCleanDeletedTargets_WithFailedSources
(t *testing.T)
pkg/discovery/discovery_test.go:65
Function
TestCleanDeletedTargets_WithNoFailures
(t *testing.T)
pkg/discovery/discovery_test.go:54
Function
TestProcessServiceInstances
(t *testing.T)
pkg/discovery/discovery_test.go:25
Function
TestProcessServiceInstances_WithEmptyList
(t *testing.T)
pkg/discovery/discovery_test.go:47
Function
main
()
main.go:26