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

Pool usage metrics #112

Closed
christianang opened this issue Apr 5, 2023 · 0 comments · Fixed by #116
Closed

Pool usage metrics #112

christianang opened this issue Apr 5, 2023 · 0 comments · Fixed by #116

Comments

@christianang
Copy link
Contributor

It would be useful if we could some usage statistics from the pool without having to query the IPAddresses and count ourselves.

We are thinking of adding a total, used, free in the pool status. E.g.

---
apiVersion: ipam.cluster.x-k8s.io/v1alpha1
kind: InClusterIPPool
metadata:
  name: pool-name
  namespace: pool-ns
spec:
  subnet: 10.0.0.0/24
status:
  ipAddresses:
    # The total number of IPs the pool has.
    total: 255
    # The number of IPs that have already been allocated.
    used: 9
    # The number of IPs that are available to allocate.
    free: 250
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 a pull request may close this issue.

1 participant