Comments (3)
But the allow_dynamic_housekeeping
flag is still true, this differs from your config.
However, I don't know any details about the housekeeping in general, also I don't use cadvisor for a long time now in my personal projects. If you have specific questions for cadvisor, please ask those questions in their repository.
from helm-charts.
Can you please make a kubectl describe
of the cadvisor daemonset and check if the args are applied there with the shorter housekeeping args as you expect?
If yes, please open an issue at cadvisor repo, if not I would need more infos relating your custom values.yaml and how you install the chart into your cluster.
from helm-charts.
This is the output, it is with the same args as I expect. But may I know is it supposed to work? Or have you tried if it is working with different housekeeping interval?
(base) skollryu@pop-os:~$ kubectl describe pod cadvisor-v26cz
Name: cadvisor-v26cz
Namespace: socialnetwork
Priority: 0
Service Account: cadvisor
Node: minikube/192.168.49.2
Start Time: Thu, 29 Feb 2024 14:31:06 +0000
Labels: app=cadvisor
controller-revision-hash=7fdfcb695
pod-template-generation=1
release=cadvisor
Annotations: <none>
Status: Running
IP: 10.244.8.187
IPs:
IP: 10.244.8.187
Controlled By: DaemonSet/cadvisor
Containers:
cadvisor:
Container ID: docker://f4bb91545bc6930054cf45519f09dc2088115e27b0be6e0c92ee79f753a23ebf
Image: gcr.io/cadvisor/cadvisor:v0.47.0
Image ID: docker-pullable://gcr.io/cadvisor/cadvisor@sha256:adc29827d88730174181e9fe221938323baa6ba8c5734c2ec52aa2e86a0c303e
Port: 8080/TCP
Host Port: 0/TCP
Args:
--allow_dynamic_housekeeping=true
--housekeeping_interval=2s
--max_housekeeping_interval=2s
--event_storage_event_limit=default=0
--event_storage_age_limit=default=0
--disable_metrics=percpu,process,sched,tcp,udp
--docker_only
State: Running
Started: Thu, 29 Feb 2024 22:46:28 +0000
Last State: Terminated
Reason: Completed
Exit Code: 0
Started: Thu, 29 Feb 2024 14:31:08 +0000
Finished: Thu, 29 Feb 2024 15:24:10 +0000
Ready: True
Restart Count: 1
Environment: <none>
Mounts:
/dev/disk from disk (ro)
/rootfs from rootfs (ro)
/sys from sys (ro)
/var/lib/docker from docker (ro)
/var/run from varrun (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
rootfs:
Type: HostPath (bare host directory volume)
Path: /
HostPathType:
varrun:
Type: HostPath (bare host directory volume)
Path: /var/run
HostPathType:
sys:
Type: HostPath (bare host directory volume)
Path: /sys
HostPathType:
docker:
Type: HostPath (bare host directory volume)
Path: /var/lib/docker
HostPathType:
disk:
Type: HostPath (bare host directory volume)
Path: /dev/disk
HostPathType:
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/disk-pressure:NoSchedule op=Exists
node.kubernetes.io/memory-pressure:NoSchedule op=Exists
node.kubernetes.io/not-ready:NoExecute op=Exists
node.kubernetes.io/pid-pressure:NoSchedule op=Exists
node.kubernetes.io/unreachable:NoExecute op=Exists
node.kubernetes.io/unschedulable:NoSchedule op=Exists
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 8h default-scheduler Successfully assigned socialnetwork/cadvisor-v26cz to minikube
Normal Pulled 8h kubelet Container image "gcr.io/cadvisor/cadvisor:v0.47.0" already present on machine
Normal Created 8h kubelet Created container cadvisor
Normal Started 8h kubelet Started container cadvisor
Normal SandboxChanged 5m9s kubelet Pod sandbox changed, it will be killed and re-created.
Normal Pulled 4m50s kubelet Container image "gcr.io/cadvisor/cadvisor:v0.47.0" already present on machine
Normal Created 4m49s kubelet Created container cadvisor
Normal Started 4m38s kubelet Started container cadvisor
For my prometheus, this is the config.
global:
## How frequently to scrape targets by default
##
scrape_interval: 5s
## How long until a scrape request times out
##
scrape_timeout: 3s
## How frequently to evaluate rules
##
evaluation_interval: 1m
When I get data from prometheus, it always change values (CPU usage) every 10s - 15s. I have tested prometheus, and I think the settings are correct. Again, the issue I linked earlier looks like referring cadvisor housekeeping intervals not being configurable? Thank you very much
from helm-charts.
Related Issues (17)
- Deprecate prometheus-msteams
- Label Issue
- update nfs-client-provisioner to include accessModes HOT 3
- Could not configure a source for OOM detection HOT 2
- chart repo url is 404'ing HOT 1
- v0.44.1 tag is not present anymore in gcr.io/cadvisor/cadvisor HOT 2
- SBOM Operator - Incorrect env var indentation
- Unable to set namespace on some of the templates with kustomize HOT 4
- cadvisor: No targets visible in prometheus-ui HOT 2
- cadvisor: Fresh install fails with read only file system HOT 1
- Allow to add custom pod labels HOT 2
- cadvisor: container_spec_cpu metrics not available HOT 2
- feat: VO and SO - Allow extraVolumeMounts to be added to values for things like certificates
- bug: vulnerability-operator - missing reports directory
- Missing nodeport setting in values.yaml HOT 2
- Add possibility to add securityContexts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.