-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[kubernetes plugin] Volume are not filtered by storage type #7124
Comments
I'm not a go dev but seems the code is there and I don't see any filtering. and seems you cannot do filtering based on output of the api endpoint:
Searching for volumes in the outputs, I'm not even sure they are in as I can't find their name. If I look at a podref object for which I know there is a PVC attached, it's not present as I find no capacityBytes that could match the size of the PVC |
Seems PVC are no longer in kubelet since 1.12 - cf kubernetes/kubernetes#68522 |
Ok and seems csi-cinder driver does not report metrics yet :'(
Will try on gke then for further tests. |
Did you make any headway on this @nsteinmetz? Is there a pattern (like volume names or mount option) that we can ignore? |
Hello @MyaLongmire, Currently I no longer use kubernetes for my current project so no idea if anything changed since but I didn't progress on this on my side. |
@nsteinmetz Thanks for getting back to us! I am going to close this for now then. If anyone needs it reopened, let me know :) |
@MyaLongmire I would indeed appreciate a way to predictably filter out all non-PVC entries - which IMHO could even be the default plugin behavior (similar to how As for how to get the data to differentiate these volume types I'm not sure. Volume names are user-defined for both PVCs and configmaps/secrets so I don't think any pattern filtering is feasible there. For additional context, #8546 and #8565 are another issues that somewhat similarly suffer from the current two-plugin split and trying to combine |
Relevant telegraf.conf:
Default configuraiton of the
telegraf-ds
chart except for outputs which targets my 1.x and 2.x influxdb instances.cf https://github.com/influxdata/helm-charts/blob/master/charts/telegraf-ds/templates/configmap.yaml#L18-L40
System info:
Telegraf 1.13.4
Kubernetes 1.17.0 @ OVH Managed K8S Service
Steps to reproduce:
Expected behavior:
See only volumes from PVC and not configmaps or secrets.
Actual behavior:
See all volumes mounted in pods : configmaps, volumes, secrets
Also, for secrets and configmaps, the capacity_bytes match the total capacity bytes on the local node.
Additional info:
To see all volumes, do a flux function as:
You will see all mounted volumes and the wrong capacity bytes for configmaps and secrets.
The text was updated successfully, but these errors were encountered: