Gather less metrics with cadvisor (#56)

* Gather less metrics and disable dynamic housekeeping

* Set target to stage
This commit is contained in:
Anatoly Laskaris 2022-07-29 16:53:05 +03:00 committed by GitHub
parent 936f988c33
commit 216611aeff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"target": "testnet",
"target": "stage",
"environments": [
{

View File

@ -135,6 +135,7 @@ def do_deploy_cadvisor():
name = "--name=cadvisor"
ports = "-p 16000:8080"
container = "gcr.io/cadvisor/cadvisor:v0.39.3"
commands = "--docker_only=true --disable_metrics=diskIO,advtcp,referenced_memory,memory_numa,resctrl,hugetlb,accelerator --store_container_labels=false --allow_dynamic_housekeeping=false --housekeeping_interval=15s --max_housekeeping_interval=30s"
command = "docker run -d {} {} {} {} {}".format(volumes, devices, name, ports, container)
command = "docker stop cadvisor && docker rm cadvisor && docker run -d {} {} {} {} {} {}".format(volumes, devices, name, ports, container, commands)
run(command)