Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Allow edges queries to see cross-namespace edges #54

Merged
merged 2 commits into from
Mar 11, 2020

Conversation

adleong
Copy link
Contributor

@adleong adleong commented Mar 10, 2020

Linkerd edge queries in Prometheus have the label constraint that "namespace" must match the resource namespace. The "namespace" Prometheus label refers to the label of the source resource. In the case of a "from" edge, the source resource might be in a different namespace and therefore get excluded by this query.

We distinguish between the "namespace" (source) and "toNamespace" (destination) to properly include all "from" edges, even from resources in other namespaces.

Signed-off-by: Alex Leong alex@buoyant.io

Signed-off-by: Alex Leong <alex@buoyant.io>
Signed-off-by: Alex Leong <alex@buoyant.io>
Copy link
Member

@Pothulapati Pothulapati left a comment

Choose a reason for hiding this comment

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

Ah! Great Fix!
Just tried it out, LGTM!

Nit: Should we call the source namespace as fromNamespace? as we already call the source name as fromName

@grampelberg grampelberg merged commit 1e08ed0 into servicemeshinterface:master Mar 11, 2020
@adleong adleong deleted the alex/to-namespace branch March 12, 2020 17:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants