Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8s_collect.pl doesn't report metrics from nodes #3

Open
nitrogear opened this issue Aug 27, 2019 · 0 comments
Open

k8s_collect.pl doesn't report metrics from nodes #3

nitrogear opened this issue Aug 27, 2019 · 0 comments

Comments

@nitrogear
Copy link

nitrogear commented Aug 27, 2019

Following loop collects metrics from all items with namespace:

        # if element has namespace, check if we really need this one and if its equal to current item
        if (defined $element->{metadata}->{namespace}) {
            next unless (
                defined $NAMESPACES_HASH{$element->{metadata}->{namespace}}
                and $element->{metadata}->{namespace} eq $namespace
            );
        }

        next unless ($element->{metadata}->{name} eq $name);

However node metrics don't have namespace, that's why collect script doesn't report any metric from nodes

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

No branches or pull requests

1 participant