Add the playbook: container metrics on the Flatcar Docker hosts #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "add-container-metrics"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Second half of the deployment side of DWA-65. Deploys
container_metrics(cAdvisor) to bix, inara and mara, pinned by tag at v0.1.0.Why a separate repository
baselineinstalls and removes packages on every host it touches, and these hosts have no package manager at all — which is whybaseline.ymlalready documents excluding them. Adding a play for them to that file would mean every run of one carrying the risk of the other.fennec01 is deliberately absent
It is Flatcar too, but it is the Kubernetes node: kubespray owns its configuration, and its containers are already reported through kubelet's own cAdvisor. The
flatcargroup is the three Docker hosts only.No collections
The playbook uses
ansible.builtinonly. A pinned-but-unused collection is one more copy to keep in step across playbook repositories for no benefit.Verified
ansible-lintat the production profile: passedyamllint: cleancontainer_metrics (v0.1.0) was installed successfullyansible-inventory --graph flatcarresolves to exactlybix,inara,maraansible-playbook --syntax-checkpasses with the role in place⚠️ As with the role PR: river's pinned
ansible-lint,yamllintandansible-coreshims are all broken (ModuleNotFoundErrorfrom the pipx installs), somise run lint/setup/validatecannot currently run there. I used the same pinned versions throughuvx. That is worth fixing on its own — right now no playbook or role repository can be linted on river through its own tooling.Running it
The role pulls the cAdvisor image on first start, so the initial run takes a little longer than later ones; the task waits for
/metricsto answer rather than declaring success when systemd reports active.After this
The fennec side: scrape config for
:9101on the three hosts, alerts, and a dashboard. Worth holding until this has actually run, or the new targets simply alert as down.