Skip to content

Conversation

jeschkies
Copy link
Contributor

No description provided.

debugEnabled bool

// mapping from namespace to diffrent join key hash functions for a metric. The functions are sorted by the number of dimensions.
namespaceToJoinKeyHashFunction map[string][]hashKeyFunction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The associator is not intended to be used across different AWS Namespaces. It is always run within the context of a single DiscoveryJob which has a single namespace,

var assoc resourceAssociator
if len(svc.DimensionRegexps) > 0 && len(resources) > 0 {
assoc = maxdimassociator.NewAssociator(logger, discoveryJob.DimensionsRegexps, resources)
} else {
// If we don't have dimension regex's and resources there's nothing to associate but metrics shouldn't be skipped
assoc = nopAssociator{}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants