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

Add metrics for total prefix count and ips used per cidr #1529

Merged
merged 3 commits into from
Jul 14, 2021

Conversation

jayanthvn
Copy link
Contributor

@jayanthvn jayanthvn commented Jul 9, 2021

What type of PR is this?
feature

Which issue does this PR fix:
N/A

What does this PR do / Why do we need it:
Add metrics to export total prefix count and number of IPs consumer per cidr

If an issue # is not available please add repro steps and logs from IPAMD/CNI showing the issue:
N/A

Testing done on this change:

With few default pods -

# HELP awscni_total_ipv4_prefixes The total number of IPv4 prefixes\n
# TYPE awscni_total_ipv4_prefixes gauge\nawscni_total_ipv4_prefixes 1
# HELP awscni_assigned_ip_per_ipv4cidr The total number of IP addresses assigned per cidr
# TYPE awscni_assigned_ip_per_ipv4cidr gauge\nawscni_assigned_ip_per_ipv4cidr{cidr=\"192.168.42.48/28\"} 1

Screen Shot 2021-07-09 at 11 33 17 AM

Added few pods in PD mode -

Screen Shot 2021-07-09 at 12 14 03 PM

Deleted few pods in PD mode -

Screen Shot 2021-07-09 at 12 14 47 PM

Enabled secondary IP mode with pods behind few prefixes

Screen Shot 2021-07-09 at 12 23 10 PM

Deleted pods behind prefixes and prefixes got cleaned up

Screen Shot 2021-07-09 at 12 29 55 PM

Scale with secondary mode -

Screen Shot 2021-07-09 at 12 42 46 PM

Screen Shot 2021-07-09 at 12 42 52 PM

Automation added to e2e:

N/A

Will this break upgrades or downgrades. Has updating a running cluster been tested?:
N/A

Does this change require updates to the CNI daemonset config files to work?:

N/A

Does this PR introduce any user-facing change?:

N/A


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jayanthvn jayanthvn requested a review from achevuru July 9, 2021 18:34
@jayanthvn jayanthvn merged commit 7d2e266 into aws:master Jul 14, 2021
jayanthvn added a commit to jayanthvn/amazon-vpc-cni-k8s that referenced this pull request Jul 14, 2021
* Add metrics for total prefix count and ips used per cidr

* update readme

* formatting
@jayanthvn jayanthvn mentioned this pull request Jul 14, 2021
jayanthvn added a commit that referenced this pull request Jul 15, 2021
* Add metrics for total prefix count and ips used per cidr

* update readme

* formatting
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